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 are preprocessor directives?
What is main () in c language?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Explain goto?
Explain how can you avoid including a header more than once?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What does %d do in c?
What is the significance of an algorithm to C programming?
What is the use of bit field?
How do I swap bytes?
Add Two Numbers Without Using the Addition Operator
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Difference between strcpy() and memcpy() function?
What's the total generic pointer type?
Is multithreading possible in c?