What is the correct value to return to the operating system upon the successful completion of a program? -1 1 Program do no return a value. 2 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of given program?#include<stdio.h>void main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} 1 complier error 1 -1 -1 1 -1 1 -1 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} Linker Error 20 Compiler Error 2 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function calculates the square of 'x' in C? power(x, 2) power(2, x) sqr(x) pow(2, x) pow(x, 2) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#include<stdio.h>void main(){ printf(5+"Good Morningn");} Good Morning Morning None of these M Good 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);} 0 1 2 3 1 1 2 3 1 1 2 2 0 1 2 2 None of these TRUE ANSWER : ? YOUR ANSWER : ?
The function sprintf() works like printf(), but operates on .......... Data file stdin stderr string no such function in 'C'. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} None of These sizeof(i)=1 sizeof(i)=2 Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program. void main() { int i=01289; printf("%d", i); } 0713 0289 Syntax error 713 1289 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));} sizeof(i)=1 Compiler Error sizeof(i)=2 None of These TRUE ANSWER : ? YOUR ANSWER : ?