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 |
Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).
13 Answers Intel, Microsoft, TCS,
how to delete an element in an array
Finding a number which was log of base 2
Write a program to print a square of size 5 by using the character S.
void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
Design an implement of the inputs functions for event mode
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
Printf can be implemented by using __________ list.
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,