Does the data type of all elements in the union will be same.
Is the following declaration correct?typedef *void (*pfun)(**int, *float);
What will be the output of the program in DOS (Compiler - Turbo C)?
#include<stdio.h> double i; int main() { (int)(float)(char) i; printf("%d",sizeof(i)); return}
What will be the output of the program?
#include<stdio.h> int main() { char far *near *ptr char far *far *ptr char far *huge *ptr printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3)); return }
Point out the error in the following program (in Turbo C under DOS).
#include<stdio.h> union emp { int empno; int age; }; int main() { union emp e = {25}; printf("%d %d", e.empno, e.age); return}
#include<stdio.h> double i; int main() { (int)(float)(char) i; printf("%d", sizeof((int)(float)(char)i)); return}
#include<stdio.h> int main() { char huge *near *far *ptr char near *far *huge *ptr char far *huge *near *ptr printf("%d, %d, %d\n", sizeof(**ptr1), sizeof(ptr2), sizeof(*ptr3)); return }
Point out the error in the following program.
#include<stdio.h> #include<stdlib.h> int main() { static char *p = (char *)malloc(10); return}
It is not necessary to typecast the address returned by malloc().
We can modify the pointers "source" as well as "target".
Is the following declaration correct?char (* ( *f())[])();
Is the following declaration correct?char far *far *ptr;
#include<stdio.h> int main() { char huge *near *far *ptr char near *far *huge *ptr char far *huge *near *ptr printf("%d, %d, %d\n", sizeof(ptr1), sizeof(*ptr2), sizeof(**ptr3)); return }
What will be the output of the program (in Turbo C under DOS)?
#include<stdio.h> int main() { char huge *near *far *ptr char near *far *huge *ptr char far *huge *near *ptr printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3)); return}
#include<stdio.h> typedef void v; typedef int i; int main() { v fun(i, i); fun(3); return } v fun(i a, i b) { i s= float i; printf("%d,", sizeof(i)); printf(" %d", a*b*s); }
#include<stdio.h> void display(int (*ff)()); int main() { int show(); int (*f)(); f = show; display(f); return} void display(int (*ff)()) { (*ff)(); } int show() { printf("IndiaBIX"); }
Function can return a floating point number.
We can allocate a 2-Dimensional array dynamically.
Is the following declaration correct?void(*f)(int, void(*)());
#include<stdio.h> typedef unsigned long int uli; typedef uli u; int main() { uli a; u b = - a = - printf("%lu, %lu", a, b); return}
Please disable the adBlock and continue. Thank you.