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 variable k can’t be initialized. The variable must always be the letter i when using a for loop. The commas should be semicolons. The increment should always be ++k . There should be a semicolon at the end of the statement. The variable k can’t be initialized. The variable must always be the letter i when using a for loop. The commas should be semicolons. The increment should always be ++k . 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 vlaue Garbage Value Code will not compile 0 0 Garbage value 0 0 Garbage Value Garbage vlaue Garbage Value Code will not compile 0 0 Garbage value 0 0 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? scanf() gets() printf() puts() None of these scanf() gets() printf() puts() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? defg fg cdefg bcdefg efg defg fg cdefg bcdefg efg ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 24 7 6 12 It will not compile because not enough initializers are given 24 7 6 12 It will not compile because not enough initializers are given ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) 15 30 50 10 None of these 15 30 50 10 None of these ANSWER DOWNLOAD EXAMIANS APP