Determine Output:#define clrscr() 100void main(){ clrscr(); printf("%d", clrscr());} 1 100 Error TRUE ANSWER : ? YOUR ANSWER : ?
The function scanf() returns ......... 0 ASCII value of the input read. 1 The actual values read for each argument. The number of successful read input values. TRUE ANSWER : ? YOUR ANSWER : ?
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 6 7 24 12 It will not compile because not enough initializers are given TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;int value;printf("Enter your age:");value=scanf("%f", &age);if(value==0){printf("\\nYour age is not valid");}AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("\\n You have lived for %f seconds", AgeInSeconds);} Enter your age: xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Enter your age : xyz Your age is not valid Complier error TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>void main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} N M P None of These TRUE ANSWER : ? YOUR ANSWER : ?
What is the output of the following statements?int i = 0;printf("%d %d", i, i++); 0 1 1 1 0 0 None of these 1 0 TRUE ANSWER : ? YOUR ANSWER : ?
What is the correct value to return to the operating system upon the successful completion of a program? 1 -1 2 Program do no return a value. TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? None of these arr[6] arr[7] arr{7} arr{6} TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){ int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u", a+1, &a+1);} 65480, 65496 65474, 65488 65480, 65488 65474, 65476 None of these TRUE ANSWER : ? YOUR ANSWER : ?
Which is the only function all C programs must contain? getch() system() start() printf() main() TRUE ANSWER : ? YOUR ANSWER : ?