C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff3 fff4 fff1 fff2 fff0 fff3 fff4 fff1 fff2 fff0 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... Data file string stderr stdin no such function in 'C'. Data file string stderr stdin no such function in 'C'. 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 3 4 10 5 5 5 10 5 3 3 10 5 4 4 10 5 4 3 10 5 3 4 10 5 5 5 10 5 3 3 10 5 4 4 10 5 4 3 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 10 -5 1 15 30 10 -5 1 15 30 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;int value;printf("Enter your age:");value=scanf("%f", &age);if(value==0){printf("\\nYour age is not valid");}AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("\\n You have lived for %f seconds", AgeInSeconds);} Enter your age : xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid Complier error Enter your age : xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid Complier error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is used to find the first occurrence of a given string in another string? strstr() None of these strnset() strrchr() strchr() strstr() None of these strnset() strrchr() strchr() ANSWER DOWNLOAD EXAMIANS APP