C Programming :: Functions
-
What will be the output of the program in 16 bit platform (Turbo C under DOS)?
#include
int main() { int fun(); int i; i = fun(); printf("%d\n", i); return 0; } int fun() { _ AX = 1990; } -
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int i; int fun(); int main() { while(i) { fun(); main(); } printf("Hello\n"); return 0; } int fun() { printf("Hi"); } -
What will be the output of the program?
include
int reverse(int); int main() { int no=5; reverse(no); return 0; } int reverse(int no) { if(no == 0) return 0; else printf("%d,", no); reverse (no--); } -
What will be the output of the program?
#include
-
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int main() { void fun(char*); char a[100]; a[0] = 'A'; a[1] = 'B'; a[2] = 'C'; a[3] = 'D'; fun(&a[0]); return 0; } void fun(char *a) { a++; printf("%c", *a); a++; printf("%c", *a); } -
What will be the output of the program?
#include
int main() { int fun(int); int i = fun(10); printf("%d\n", --i); return 0; } int fun(int i) { return (i++); } -
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int main() { int i=1; if(!i) printf("FRESHERGATE,"); else { i=0; printf("C-Program"); main(); } return 0; }