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
c program to compute AREA under integral
What is a pointer variable in c language?
What is the explanation for prototype function in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is the difference between typedef and #define?
Explain what are preprocessor directives?
Can we declare function inside main?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What are identifiers and keywords in c?
How many keywords are there in c?
What is the purpose of clrscr () printf () and getch ()?
What is meant by type casting?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What are pointers really good for, anyway?