Which command is used to skip the rest of a loop and carry on from the top of the loop again? break skip resume continue None of these TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?#include<stdio.h>#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); } None of These 64 16 4 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=5, j=6, z; printf("%d", i+++j);} 12 11 None of These 13 TRUE ANSWER : ? YOUR ANSWER : ?
What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 0 33 -1 1 Compilation Error 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 15 None of these 30 50 TRUE ANSWER : ? YOUR ANSWER : ?
char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? fg defg efg bcdefg cdefg TRUE ANSWER : ? YOUR ANSWER : ?
What is right way to Initialize array? int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} 6 5 4 7 None of these 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));} 1 1 1 2 2 1 2 2 TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? A declaration occurs once, but a definition may occur many times. There is no difference between them. A definition occurs once, but a declaration 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 : ?