fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}
Answers were Sorted based on User's Feedback
How can a program be made to print the name of a source file where an error occurs?
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
to write a program, that finds the minimum total number of shelves, including the initial one, required for this loading process. The packets are named A, B, C, D, E …….. Any numbers of packets with these names could be kept in the shelf, as in this example: [ZZLLAAJKRDFDDUUGGYFYYKK]. All packets are to be loaded on cars. The cars are lined in order, so that the packets could be loaded on them. The cars are also named [A, B, C, D, E,………….].
Write a program for print infinite numbers
How can we open a file in Binary mode and Text mode?what is the difference?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
If null and 0 are equivalent as null pointer constants, which should I use?
When would you use a pointer to a function?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
what is stack , heap ,code segment,and data segment
what value is returned to operating system after program execution?