main(int argc, char *argv[])
{
(main && argc) ? main(argc-1, NULL) : return 0;
}
a. Runtime error.
b. Compile error. Illegal syntax
c. Gets into Infinite loop
d. None of the above
Answers were Sorted based on User's Feedback
Answer / sushil
it will give a run time error since , return cannot be used
as it is used in ternary operator.
Is This Answer Correct ? | 1 Yes | 3 No |
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d \n”,a,*a,**a,***a); printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1); }
main() { int i=10; i=!i>14; Printf ("i=%d",i); }
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.
#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }
Write a single line c expression to delete a,b,c from aabbcc
program to Reverse a linked list
12 Answers Aricent, Microsoft, Ness Technologies,
main() { char *str1="abcd"; char str2[]="abcd"; printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd")); }
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql