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 will be the output of the program? #include int main() { int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }


2)

Which of the following cannot be checked in a switch-case statement?



3) Which of the following errors would be reported by the compiler on compiling the program given below? #include int main() { int a = 4; switch(a) { case 1: printf("First"); case 2: printf("Second"); case 3 + 1: printf("Third"); case 4: printf("Final"); break; } return 0; }


4) Which of the following is not user defined data type? 1 : struct book { char name[10]; float price; int pages; }; 2: long int l = 2L; 3: enum day {Sun, Mon, Tue, Wed}; 4: union employee { int id; Char name[36]; int sal; };


5)

What will be the output of the program?

#include<stdio.h>

int main()

{

    char str[]="C-program";

    int a = 5;

    printf(a >1?"Sree Jobs\n":"%s\n", str);

    return 0;

}



6) Which of the following is the correct usage of conditional operators used in C?


7) void main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }


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


9)

#include<stdio.h>

int main()

{

    int i = 0;

    i++;

    if(i++ <= 5)

    {

        printf("Sree Jobs");

        exit();

        main();

    }

    return 0;

}



10)

void main(){

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

if(a,b,x,y)

printf("hello");

}

Page 1 of 2
Home | Register for Job Updates | Contact Us