C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? efg cdefg defg bcdefg fg efg cdefg defg bcdefg fg ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 2..4 4..4 2..2 4..2 2..4 4..4 2..2 4..2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); Garbage Value 15 14 12 13 Garbage Value 15 14 12 13 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 10..50 Error 0 10..10 10..50 Error 0 10..10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=3 d=5 c=3 d=3 c=5 d=5 c=5 d=3 c=3 d=5 c=3 d=3 c=5 d=5 c=5 d=3 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++) The increment should always be ++k . The variable k can’t be initialized. There should be a semicolon at the end of the statement. The commas should be semicolons. The variable must always be the letter i when using a for loop. The increment should always be ++k . The variable k can’t be initialized. There should be a semicolon at the end of the statement. The commas should be semicolons. The variable must always be the letter i when using a for loop. ANSWER DOWNLOAD EXAMIANS APP