C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 1 2 1 1 2 2 2 1 1 2 1 1 2 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 3 7 8 3 3 8 None of these 7 3 3 7 8 3 3 8 None of these 7 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 0 Garbage value 0 Code will not compile Garbage vlaue Garbage Value 0 Garbage Value 0 0 Garbage value 0 Code will not compile Garbage vlaue Garbage Value 0 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 3 2 2 2 4 3 4 3 3 2 3 2 2 2 4 3 4 3 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the base data type of a pointer variable by which the memory would be allocated to it? unsigned int float No data type int Depends upon the type of the variable to which it is pointing. unsigned int float No data type int Depends upon the type of the variable to which it is pointing. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char s[]="man"; int i; for(i=0; s[i]; i++) printf("%c%c%c%c ", s[i], *(s+i), *(i+s), i[s]);} Compiler Error None of These mmmm nnnn aaaa mmm nnn aaa Compiler Error None of These mmmm nnnn aaaa mmm nnn aaa ANSWER DOWNLOAD EXAMIANS APP