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) Which of the following operations are INCORRECT?


2)

void main()

{

int i=5;

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

}



3)

void  main()

{

int i =0;j=0;

if(i && j++)

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

printf("%d..%d,i,j);

}



4)

Point out the error in the following program.

#include<stdio.h>

int main()

{

    display();

    return 0;

}

void display()

{

    printf("Disp fun");

}



5)

void main(){

int a= 0;int b = 20;char x =1;char y =10;

if(a,b,x,y)

printf("hello");

}



6)

What will be the output of the program?

#include<stdio.h>

int main()

{

    int x=2, y=70, z;

    z = x!=4 || y == 2;

    printf("z=%d\n", z);

    return 0;

}



7) Point out the error, if any in the program. #include int main() { int i = 10; switch(i) { case 1: printf("Case10"); break; case 1*2+4: printf("Case2"); break; } return 0; }


8)

Which of the structure is incorrcet?

1 :

struct aa

{

    int a=10;

    float b=3.14f;

};

2 :

 struct aa

{

    int a;

    float b;

    struct aa var;

};

3 :

struct aa

{

    int a;

    float b;

    struct aa *var;

};



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


10) #include int main() { int a = 1000; switch(a) { } printf("This is c program."); return 0; }
Page 1 of 2
Home | Register for Job Updates | Contact Us