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 |
how can I convert a string to a number?
what are the advantages of a macro over a function?
Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?
Can we add pointers together?
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Give me basis knowledge of c , c++...
write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4
Explain what a Binary Search Tree is.
what is the role you expect in software industry?
Can you tell me how to check whether a linked list is circular?
List the different types of c tokens?
What is the scope of static variables?