C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } int funct(int x) { return x=x+1; } None of these void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } int funct(int x) { return x=x+1; } None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as int(*p(char *))[] int (*p) (char *)[] None of these. int *p(char *)[] int(*p(char *))[] int (*p) (char *)[] None of these. int *p(char *)[] ANSWER DOWNLOAD EXAMIANS APP
C Programming What number will z in the sample code given below?int z, x=5, y= -10, a=4, b=2;z = x++ - --y*b/a; 9 6 10 11 5 9 6 10 11 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }} 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 2 2 2 2 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2 3 4 6 5 2 3 4 6 5 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 2 2 2 2 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2 3 4 6 5 2 3 4 6 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);} complier error 1 0 no error no output complier error 1 0 no error no output ANSWER DOWNLOAD EXAMIANS APP