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 does c mean before a date?
What are the different types of control structures in programming?
Explain what is a pragma?
What are predefined functions in c?
Write a program in c to replace any vowel in a string with z?
Explain what is the best way to comment out a section of code that contains comments?
What is #define used for in c?
Explain the difference between getch() and getche() in c?
how we can make 3d venturing graphics on outer interface
What is the total generic pointer type?
What is a stream in c programming?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What are the different properties of variable number of arguments?
Place the #include statement must be written in the program?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,