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 |
What is hashing in c language?
What are # preprocessor operator in c?
What are the valid places to have keyword “break”?
What is wrong in this statement?
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)
Explain how can a program be made to print the name of a source file where an error occurs?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Write a progarm to find the length of string using switch case?
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
What are lookup tables in c?