Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) None of these 50 30 10 15 TRUE ANSWER : ? YOUR ANSWER : ?
For 16-bit compiler allowable range for integer constants is ________? -32668 to 32667 -3.4e38 to 3.4e38 -32768 to 32767 -32767 to 32768 TRUE ANSWER : ? YOUR ANSWER : ?
A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Comment on the following pointer declaration?int *ptr, p; ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr is pointer to integer, p may or may not be. ptr and p both are not pointers to integer. TRUE ANSWER : ? YOUR ANSWER : ?
char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=VEDA y=EDA y=MVEDA y=EXAMIANS y=AMVEDA TRUE ANSWER : ? YOUR ANSWER : ?
What is the correct value to return to the operating system upon the successful completion of a program? 1 Program do no return a value. 2 -1 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} Error zero three None of These TRUE ANSWER : ? YOUR ANSWER : ?
What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); Compilation Error 33 1 -1 0 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a correct variable type? real char int double float TRUE ANSWER : ? YOUR ANSWER : ?
What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The increment should always be ++k . There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The commas should be semicolons. The variable k can’t be initialized. TRUE ANSWER : ? YOUR ANSWER : ?