C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 33 1 -1 0 Compilation Error 33 1 -1 0 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command has # as the first character comes before the first executable statement need not start on a new line need not start on the first column has # as the first character comes before the first executable statement need not start on a new line need not start on the first column 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? float int unsigned int Depends upon the type of the variable to which it is pointing. No data type float int unsigned int Depends upon the type of the variable to which it is pointing. No data type ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} 10 Compiler time error Segmentation fault/runtime crash Undefined behavior 10 Compiler time error Segmentation fault/runtime crash Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming What number will z in the sample code given below?int z, x=5, y= -10, a=4, b=2;z = x++ - --y*b/a; 11 9 10 5 6 11 9 10 5 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 1 0.5 2 0.25 9 1 0.5 2 0.25 9 ANSWER DOWNLOAD EXAMIANS APP