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 defg efg cdefg fg bcdefg defg efg ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? printf() scanf() puts() gets() None of these printf() scanf() puts() gets() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} None of these 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 None of these 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} Error 2 1 -2 Error 2 1 -2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 -5 30 1 10 15 -5 30 1 10 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 6 0 7 Compiler Error 5 6 0 7 Compiler Error 5 ANSWER DOWNLOAD EXAMIANS APP