What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} None of these. Unequal Equal Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of given program?#include<stdio.h>void main(){int a=3;for(;a;printf("%d ", a--);} 3 2 1 3 2 1 0 no output infinity loop TRUE ANSWER : ? YOUR ANSWER : ?
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 2 2 2 2 2 3 4 6 5 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 TRUE ANSWER : ? YOUR ANSWER : ?
What is the base data type of a pointer variable by which the memory would be allocated to it? unsigned int float int No data type Depends upon the type of the variable to which it is pointing. TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} 14 11 Compilation error 12 13 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=1 sizeof(i)=2 Compiler Error None of These TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=1; while(i<=5) { printf("%d", i); if(i>2) goto here; i++; }}fun(){ here: printf("PP");} None of These 12PP 12PP345 Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54554 54544 45545 55445 TRUE ANSWER : ? YOUR ANSWER : ?
Which operator from the following has the lowest priority? Conditional operator Division operator Assignment operator Unary-operator Comma operator TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is the correct way of declaring a float pointer: None of these *float ptr; float *ptr; float ptr; TRUE ANSWER : ? YOUR ANSWER : ?