C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? cdefg fg bcdefg efg defg cdefg fg bcdefg efg defg 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); 15 13 12 Garbage Value 14 15 13 12 Garbage Value 14 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54544 54554 45445 45545 54544 54554 45445 45545 ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 4 3 10 5 3 4 10 5 4 4 10 5 5 5 10 5 3 3 10 5 4 3 10 5 3 4 10 5 4 4 10 5 5 5 10 5 3 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 commas should be semicolons. 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 variable k can’t be initialized. The increment should always be ++k . The commas should be semicolons. 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 variable k can’t be initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output given program?#includevoid main(){int i = -10;for(;i;printf("%d ", i++));} -10 to -1 -10 to 0 -10 to infinite Complier error -10 to -1 -10 to 0 -10 to infinite Complier error ANSWER DOWNLOAD EXAMIANS APP