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 |
When is the “void” keyword used in a function?
Is array a primitive data type in c?
#include<conio.h> #include<stdio.h> void main() { int i; if(1,0,2,3) { printf("if"); } else { printf("else"); } getch(); } Can any body tell the answer of this question with explanation?
What is masking?
What are the advantages and disadvantages of a heap?
Explain what will the preprocessor do for a program?
What is the difference between a free-standing and a hosted environment?
What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
can we print any string in c language without using semicolon(;)(terminator) in whole program.
What are the advantages of Macro over function?
Write a program to show the change in position of a cursor using c
What is the purpose of macro in C language?