main()
{
static int ivar=5;
printf("%d",ivar--);
if(ivar)
main();
}
Answers were Sorted based on User's Feedback
Explain what happens if you free a pointer twice?
Can I initialize unions?
What is difference between class and structure?
Define and explain about ! Operator?
number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
What are function pointers? Provide an example.
What is scope and lifetime of a variable in c?
How would you write qsort?
#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain ؟؟؟
Explain null pointer.
Explain the difference between #include "..." And #include <...> In c?