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) #include int main() { int a = 10, b; a >=5 ? b=100: b=200; printf("%d\n", b); return 0; }


2)

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



3)

#include<stdio.h>

int main()

{

    int a = 10, b;

    a >=5 ? b=100: b=200;

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

    return 0;

}



4)

Is it true that a global variable may have several declarations, but only one definition?



5)

What will be the output of the program?

#include<stdio.h>

int main()

{

    int a = 50, b = 10, c;

    if(!a >= 400)

        b = 30;

    c = 200;

    printf("b = %d c = %d\n", b, c);

    return 0;

}



6) Point out the error in the following program. #include int main() { void v = 0; printf("%d", v); return 0; }


7) which of the following are correct? 1 : typedef long a; extern int a c; 2 : typedef long a; extern a int c; 3 : typedef long a; extern a c;


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


9) What will be the output of the program? #include int main() { static int a[5]; int i = 0; a[i] = i ; printf("%d, %d, %d\n", a[0], a[1], i); return 0; }


10) 7. Assunming, integer is 2 byte, What will be the output of the program? #include int main() { printf("%x\n", -2<<2); return 0; }
Page 1 of 2
Home | Register for Job Updates | Contact Us