what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
Answer Posted / sreed
first command line argument
lets say..
exe for above prog is a.out
execute command
a.out arg1 arg2 arg3
then out put will be arg1
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is string function in c?
What is c standard library?
Explain what are the different data types in c?
Why is c platform dependent?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Is Exception handling possible in c language?
What is the difference between strcpy() and memcpy() function in c programming?
Difference between macros and inline functions? Can a function be forced as inline?
What is wrong with this code?
How many keywords are there in c?
What are the differences between Structures and Arrays?
Compare and contrast compilers from interpreters.
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What does static variable mean in c?
In a switch statement, explain what will happen if a break statement is omitted?