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 10 15 1 30 -5 10 15 1 30 -5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? -1 1 Program do no return a value. 2 -1 1 Program do no return a value. 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; 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 1 2 3 10 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 None of these 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 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? cdefg fg efg defg bcdefg cdefg fg efg defg bcdefg ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); } absiha haasi None of these asiha hai absiha haasi None of these asiha hai ANSWER DOWNLOAD EXAMIANS APP