What will be the output of the program ?#include<stdio.h>void main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 1, 15 3, 2, 15 2, 3, 20 1, 2, 5 TRUE ANSWER : ? YOUR ANSWER : ?
The function sprintf() works like printf(), but operates on .......... stderr Data file stdin string no such function in 'C'. TRUE ANSWER : ? YOUR ANSWER : ?
The operator > and < are meaningful when used with pointers, if The pointers point to data of similar type. The pointers point to structure of similar data type. The pointers point to elements of the same array. None of these. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#include<stdio.h>#include<string.h>void main(){ char str1[20] = "Hello", str2[20] = " World"; printf("%s", strcpy(str2, strcat(str1, str2)));} None of these World WorldHello Hello World Hello TRUE ANSWER : ? YOUR ANSWER : ?
The function scanf() returns ......... The actual values read for each argument. The number of successful read input values. ASCII value of the input read. 0 1 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is a complete function? void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } None of these int funct(); int funct(int x) { return x=x+1; } TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following comments about the ++ operator are correct? All of these It is a unary operator The operand can come before or after the operator It cannot be applied to an expression It associates from the right TRUE ANSWER : ? YOUR ANSWER : ?
The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. None of these. The same as int *p[ p is a pointer to a 5 elements integer array. TRUE ANSWER : ? YOUR ANSWER : ?
What will happen after compiling and running following code?main(){ printf("%p", main); } Will make an infinite loop. Some address will be printed. Error None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Which is the only function all C programs must contain? main() system() getch() start() printf() TRUE ANSWER : ? YOUR ANSWER : ?