C Programming :: Functions
-
What will be the output of the program?
#include
int addmult(int ii, int jj) { int kk, ll; kk = ii + jj; ll = ii * jj; return (kk, ll); } int main() { int i=3, j=4, k, l; k = addmult(i, j); l = addmult(i, j); printf("%d %d\n", k, l); return 0; } -
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 addmult(int ii, int jj) { int kk, ll; kk = ii + jj; ll = ii * jj; return (kk, ll); } int main() { int i=3, j=4, k, l; k = addmult(i, j); l = addmult(i, j); printf("%d, %d\n", k, l); return 0; } -
If int is 2 bytes wide.What will be the output of the program?
#include
void fun(char**); int main() { char *argv[] = {"ab", "cd", "ef", "gh"}; fun(argv); return 0; } void fun(char **p) { char *t; t = (p+= sizeof(int))[-1]; printf("%s\n", t); } -
What will be the output of the program?
#include
int fun(int(*)()); int main() { fun(main); printf("Hi\n"); return 0; } int fun(int (*p)() ) printf("Hello "); return 0; } -
What will be the output of the program?
#include
int fun(int i) { i++; return i; } int main() { int fun(int); int i=3; fun(i=fun(fun(i))); printf("%d\n", i); return 0; } -
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int main() { int i=0; i++; if(i5) { printf("FRESHERGATE"); exit(1); main(); } return 0; }