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 |
What is hashing in c?
What is ponter?
List out few of the applications that make use of Multilinked Structures?
How can you restore a redirected standard stream?
What does calloc stand for?
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is memcpy() function?
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement
prototype of sine function.
Will Macros support multiple arguments ?
What is extern c used for?