C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi followed by garbage value h Garbage Value hi Error hi followed by garbage value h Garbage Value hi Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 0 0 0 1 3 1 0 0 1 2 0 0 0 0 2 1 0 0 1 3 0 0 0 1 3 1 0 0 1 2 0 0 0 0 2 1 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 Complier error Enter your age : xyz Your age is not valid Enter your age: xyz Your age is not valid Enter your age: xyz You have lived for 0 seconds Complier error Enter your age : xyz Your age is not valid 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 3 10 5 3 4 10 5 5 5 10 5 4 4 10 5 4 3 10 5 3 3 10 5 3 4 10 5 5 5 10 5 4 4 10 5 4 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }} 2 3 4 6 5 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 2 2 2 2 2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 2 2 2 2 2 3 4 6 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming In C programming language, which of the following type of operators have the highest precedence Arithmetic operators Equality operators Logical operators Relational operators Arithmetic operators Equality operators Logical operators Relational operators ANSWER DOWNLOAD EXAMIANS APP