Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Error 6 Garbage value 3 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");} well done examians examians complier error None of these TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a valid identifier? _examians examians1 exam_veda 1examians TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 2..2 4..2 4..4 2..4 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));} 000 444 Garbage Value 433 333 TRUE ANSWER : ? YOUR ANSWER : ?
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 13 12 11 14 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Error Equal None of these. Unequal TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of following program code?#include <stdio.h>int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 5 Error None of these 6 9 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? rem = modf(3.14, 2.1); rem = 3.14 % 2.1; Remainder cannot be obtain in floating point division. rem = fmod(3.14, 2.1); TRUE ANSWER : ? YOUR ANSWER : ?
The type of the controlling expression of a switch statement cannot be of the type ........ short char long float int TRUE ANSWER : ? YOUR ANSWER : ?