C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? bcdefg fg defg cdefg efg bcdefg fg defg cdefg efg 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]);} 0 Garbage Value 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 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} Some address will be printed None of These Error make an infinite loop Some address will be printed None of These Error make an infinite loop 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 commas should be semicolons. The variable k can’t be initialized. The increment should always be ++k . 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 commas should be semicolons. The variable k can’t be initialized. The increment should always be ++k . The variable must always be the letter i when using a for loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 3 3 2 4 2 2 3 4 2 3 3 3 2 4 2 2 3 4 2 3 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) 30 50 15 10 None of these 30 50 15 10 None of these ANSWER DOWNLOAD EXAMIANS APP