Notice: Undefined index: exam_geven in /home/ksv69uw2i08d/public_html/onlineexam/exam.php on line 18
C Online Examination
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   Job Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 20.
1) Point out the error in the following program. #include struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }


2)

Point out the error in the following program.

#include<stdio.h>

int main()

{

    void v = 0;

 

    printf("%d", v);

 

    return 0;

}



3)

What is the output of the program

#include<stdio.h>

int main()

{

    union a

    {

        int i;

        char ch[2];

    };

    union a u;

    u.ch[0] = 3;

    u.ch[1] = 2;

    printf("%d, %d, %d\n", u.ch[0], u.ch[1], u.i);

    return 0;

}



4) void main() { printf("\nab"); printf("\bsi"); printf("\rha"); }


5)

Point out the error, if any in the program.

 

#include<stdio.h>

int main()

{

    int j = 100;

    switch(j)

    {

       case 10:

       printf("Case 1");

 

       case 20:

       printf("Case 2");

       break;

 

       case j:

       printf("Case j");

       break;

    }

    return 0;

}



6) Point out the error, if any in the while loop. #include int main() { int i=0; while() { printf("%d\n", i++); if(i>10) break; } return 0; }


7)

What will be the output of the program?

#include<stdio.h>

int main()

{

    int X=40;

    {

        int X=20;

        printf("%d ", X);

    }

    printf("%d\n", X);

    return 0;

}



8) What will be the output of the program? #include int main() { int i=20; int j = i + (1, 2, 3, 4, 5); printf("%d\n", j); return 0; }


9) Which of the following correctly represents a double constant?


10)

Point out the error, if any in the while loop.

#include<stdio.h>

int main()

{

    int i=0;

    while()

    {

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

        if(i>10)

           break;

    }

    return 0;

}


Notice: Undefined offset: 20 in /home/ksv69uw2i08d/public_html/onlineexam/exam.php on line 418
Page 1 of 2
Home | Register for Job Updates | Contact Us