C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 1 1 1 2 2 1 2 2 1 1 1 2 2 1 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; Both of the above We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. We can change the pointer as well as the value pointed by it. ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} Compilation error 11 12 14 13 Compilation error 11 12 14 13 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of conditional compilation Takes care of macros Takes care of include files Acts before compilation All of these Takes care of conditional compilation Takes care of macros Takes care of include files Acts before compilation All of these ANSWER DOWNLOAD EXAMIANS APP
C Programming In C programming language, which of the following type of operators have the highest precedence Relational operators Arithmetic operators Logical operators Equality operators Relational operators Arithmetic operators Logical operators Equality operators ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 20 21 20 10 20 21 21 10 10 11 11 10 20 21 10 10 20 21 20 10 20 21 21 10 10 11 11 10 20 21 10 ANSWER DOWNLOAD EXAMIANS APP