main()
{
main();
}
Answer / susie
Answer :
Runtime error : Stack overflow.
Explanation:
main function calls itself again and again. Each time the
function is called its return address is stored in the call
stack. Since there is no condition to terminate the function
call, the call stack overflows at runtime. So it terminates
the program and results in an error.
| Is This Answer Correct ? | 2 Yes | 0 No |
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
How can you relate the function with the structure? Explain with an appropriate example.
Finding a number multiplication of 8 with out using arithmetic operator
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā%dā, i); }
Write a C function to search a number in the given list of numbers. donot use printf and scanf
How to access command-line arguments?
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }
pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"
Which version do you prefer of the following two, 1) printf(ā%sā,str); // or the more curt one 2) printf(str);
main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }