Which of following is not a valid name for a C variable? Both A and B Exam_veda None of these Exam veda Examians TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 1 2 2 1 2 1 1 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a correct variable type? real float int double char TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? There is no difference between them. A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. Both can occur multiple times, but a declaration must occur first. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ printf("%p", main);} Error make an infinite loop Some address will be printed None of These TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of given program?#include<stdio.h>void main(){int a=3;for(;a;printf("%d ", a--);} infinity loop no output 3 2 1 3 2 1 0 TRUE ANSWER : ? YOUR ANSWER : ?
Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. I and III II and III II and IV III and IV I and II TRUE ANSWER : ? YOUR ANSWER : ?
Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) 10 30 None of these 50 15 TRUE ANSWER : ? YOUR ANSWER : ?
The type of the controlling expression of a switch statement cannot be of the type ........ long float int short char TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} 10 None of These 1 Garbage Value TRUE ANSWER : ? YOUR ANSWER : ?