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)

In the following program where is the variable a getting defined and where it is getting declared?

#include<stdio.h>

int main()

{

    extern int a;

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

    return 0;

}

int a=10;



2)

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;

}



3) #include int main() { int x = 10, y = 20, z = 5, i; i = x < y < z; printf("%d\n", i); return 0; }


4) #include int main() { int a = 1000; switch(a) { } printf("This is c program."); return 0; }


5) 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; }


6) long double can be used if range of a double is not enough to accommodate a real number.


7) 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; }


8)

Identify which of the following are declarations

1 :

extern int exe;

2 :

void square ( float x ) { ... }

3 :

double pow(double, double);



9)

Which of the definition is correct?



10)

#include<stdio.h>

int main()

{

    int i = 0;

    i++;

    if(i++ <= 5)

    {

        printf("Sree Jobs");

        exit();

        main();

    }

    return 0;

}

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