Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Garbage Value 5 Compiler Error 6 TRUE ANSWER : ? YOUR ANSWER : ?
What is the base data type of a pointer variable by which the memory would be allocated to it? float No data type int Depends upon the type of the variable to which it is pointing. unsigned int TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program code?#include <stdio.h>void main(){ int i=3, *j, **k; j = &i; k = &j; printf("%d%d%d", *j, **k, *(*k));} Garbage Value 433 000 444 333 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Garbage vlaue Garbage Value 0 0 0 Garbage Value Code will not compile Garbage value 0 TRUE ANSWER : ? YOUR ANSWER : ?
The function sprintf() works like printf(), but operates on .......... Data file stderr no such function in 'C'. stdin string TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} Error 1 11 12 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program?#include<stdio.h>#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} Compiler Error None of These sizeof(i)=1 sizeof(i)=2 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 1 1 2 2 1 1 2 3 None of these 0 1 2 3 0 1 2 2 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr[7] None of these arr{7} arr[6] arr{6} TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is the correct way of declaring a float pointer: float *ptr; float ptr; None of these *float ptr; TRUE ANSWER : ? YOUR ANSWER : ?