what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
Answer / 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 |
Why pointers are used in c?
What is key word in c language?
Explain Basic concepts of C language?
What is sizeof in c?
How do you sort filenames in a directory?
What are the various topologies? Which one is the most secure?
What are external variables in c?
difference between c and c++
List some applications of c programming language?
Explain what is the heap?
How can I do graphics in c?
Explain how can I avoid the abort, retry, fail messages?