Sreejobs Logo
   For Latest Job Updates  
sreenutech.com Online Exams
Home Govt Jobs IT Fresher Jobs IT Exp Jobs IT Walk-Ins MBA Jobs BPO Jobs Register FAQ’s Post Job Contact Us
Search:
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 20.
1) What is the output of the program #include int main() { struct emp { char name[20]; int age; float sal; }; struct emp e = {"Tiger"}; printf("%d, %f\n", e.age, e.sal); return 0; }


2) What will be the output of the program? #include int main() { int x = 1, y = 2; if(!(!x) && x) printf("x = %d\n", x); else printf("y = %d\n", y); return 0; }


3)

Associativity of an operator is either Left to Right or Right to Left.



4)

void main()

{

 int i=5;

printf("%d",i++ + ++i);

}



5) What will be the output of the program? #include int main() { extern int i; i = 20; printf("%d\n", i); return 0; }


6)

#include<stdio.h>

int main()

{

    int x = 10, y = 100%90, i;

    for(i=1; i<10; i++)

    if(x != y);

        printf("x = %d y = %d\n", x, y);

    return 0;

}

1 :

The printf() function is called 10 times.

2 :

The program will produce the output x = 10 y = 10

3 :

The ; after the if(x!=y) will NOT produce an error.

4 :

The program will not produce output.



7) What will be the output of the program? #include int main() { int i=3; switch(i) { case 1: printf("Hello\n"); case 2: printf("Hi\n"); case 3: printf("Bye\n"); default: continue; } return 0; }


8) Which of the definition is correct?


9)

Associativity has no role to play unless the precedence of operator is same.



10) Identify which of the following are declarations 1 : extern int exe; 2 : void square ( float x ) { ... } 3 : double pow(double, double);
Page 1 of 2
Home | Register for Job Updates | Contact Us