Solved

Simple syntax one..here!

Posted on 1998-11-02
2
171 Views
Last Modified: 2011-09-20
I have left my books at home and have forgotten how the syntax looks for passing a program parameters from the command line.
E.G. int main(argc something, argv something[])
Can you help?
0
Comment
Question by:martincollis
2 Comments
 

Accepted Solution

by:
Ant031898 earned 30 total points
ID: 1254026
The syntax is:
int main(int argc,char* argv[]) {
}
hope that helps
Cheers
Ant
0
 

Author Comment

by:martincollis
ID: 1254027
I know its a simple problem, but thanks all the same.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now