Comment on the following?const int *ptr; We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?#include<stdio.h>#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); } None of These 64 4 16 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the given program?#include<stdio.h>void main(){ int value=0; if(value) printf("well done "); printf("examveda");} examians None of these complier error well done examians TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 11 12 Error 1 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} 20 Linker Error 2 Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=5 x=1 Error x=0 x=4 TRUE ANSWER : ? YOUR ANSWER : ?
For 16-bit compiler allowable range for integer constants is ________? -32767 to 32768 -32668 to 32667 -32768 to 32767 -3.4e38 to 3.4e38 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){ int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u", a+1, &a+1);} None of these 65480, 65488 65480, 65496 65474, 65476 65474, 65488 TRUE ANSWER : ? YOUR ANSWER : ?
What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The variable k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The increment should always be ++k . TRUE ANSWER : ? YOUR ANSWER : ?