What are the 5 data types?
what is the use of fflush() function?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
write a program that finds the factorial of a number using recursion?
How does struct work in c?
What is a good way to implement complex numbers in c?
who invented c
What will be the result of the following program? main() { char p[]="String"; int x=0; if(p=="String") { printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } } a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
how to print "hai" in c?
C program to perform stack operation using singly linked list
What is the difference between exit() and _exit() function?
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .