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


Please Help Members By Posting Answers For Below Questions

What is string function in c?

725


What is c standard library?

890


Explain what are the different data types in c?

938


Why is c platform dependent?

796


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

831


Is Exception handling possible in c language?

1788


What is the difference between strcpy() and memcpy() function in c programming?

844


Difference between macros and inline functions? Can a function be forced as inline?

917


What is wrong with this code?

894


How many keywords are there in c?

805


What are the differences between Structures and Arrays?

836


Compare and contrast compilers from interpreters.

891


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

1552


What does static variable mean in c?

847


In a switch statement, explain what will happen if a break statement is omitted?

812