C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } None of these. Some address will be printed H Hello None of these. Some address will be printed H Hello ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} b = 4, c = 6 a = 3, c = 8 a = 4, c = 6 b = 3, c = 6 a = 4, c = 8 b = 4, c = 6 a = 3, c = 8 a = 4, c = 6 b = 3, c = 6 a = 4, c = 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } Nothing is printed exam is printed Compiler Error XAM is printed Nothing is printed exam is printed Compiler Error XAM is printed ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? puts() scanf() printf() gets() None of these puts() scanf() printf() gets() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 3 a[1] = 2 a[0] = 2 a[1] = 3 Compilation error a[0] = 3 a[1] = 2 a[0] = 2 a[1] = 3 Compilation error ANSWER DOWNLOAD EXAMIANS APP
C Programming The operator > and < are meaningful when used with pointers, if The pointers point to data of similar type. None of these. The pointers point to elements of the same array. The pointers point to structure of similar data type. The pointers point to data of similar type. None of these. The pointers point to elements of the same array. The pointers point to structure of similar data type. ANSWER DOWNLOAD EXAMIANS APP