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
Explain what is output redirection?
What is the difference between new and malloc functions?
Can we access the array using a pointer in c language?
Where are local variables stored in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why enum is used in c?
Explain 'bit masking'?
Explain high-order and low-order bytes.
What is a pointer in c?
What is static and auto variables in c?
what are non standard function in c
Explain how do you sort filenames in a directory?
Why do we need a structure?
What are the different data types in C?
What is d'n in c?