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 |
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
Explain what happens if you free a pointer twice?
Explain bitwise shift operators?
How to create struct variables?
How can I change their mode to binary?
how to make program without <> in library.
What is C language ?
What is the restrict keyword in C?
What functions are used in dynamic memory allocation in c?
how to write a bubble sort program without using temporary variable?
Explain the difference between struct and union.
How can I use a preprocessorif expression to ?