C Programming Functions have .......... Local scope Block scope Function scope File scope No scope at all Local scope Block scope Function scope File scope No scope at all ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 2 4 4 2 5 5 8 5 5 2 4 5 2 4 4 2 5 5 8 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) There should be a semicolon at the end of the statement. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming An array elements are always stored in ________ memory locations. Random Sequential None of these Sequential and Random Random Sequential None of these Sequential and Random ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Garbage value 0 0 0 Code will not compile 0 Garbage Value Garbage vlaue Garbage Value Garbage value 0 0 0 Code will not compile 0 Garbage Value Garbage vlaue Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the following code's output if choice = 'R'?switch(choice){ case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break;} RED WHITE BLUE ERROR RED WHITE BLUE RED ERROR RED ERROR RED WHITE BLUE ERROR RED WHITE BLUE RED ERROR RED ERROR ANSWER DOWNLOAD EXAMIANS APP