Alter Technical - C & C++
Sample Test Paper :Alter Engineering int b=10; int *p=&b;*p++; printf("%d",*p);what is the output? What is the difference between malloc, calloc and realloc? What does malloc return in C and C++? main(){char *a="hello";char *b="bye";char *c="hai";int x=10,y=100;c=(x<y>)?a:b;printf("%s",c);}whats the output? void main(){ int a,b; a=sumdig(123); b=sumdig(123); printf("%d %d",a,b);}int sumdig(int n){ static int sum; int d; if(n!=0){d=n%10;n=(n-d)/10; sum=sum+d; sumdig(n);}elsereturn s;}what is the output? Declare a pointer to a function that takes a char pointeras argument and returns a void pointer. How do...