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



2) What will be the output of the program? #include int main() { int i=4, j=-1, k=0, w, x, y, z; w = i || j || k; x = i && j && k; y = i || j &&k; z = i && j || k; printf("%d, %d, %d, %d\n", w, x, y, z); return 0; }


3)

Which of the following statements should be used to obtain a remainder after dividing 3.5 by 2.5 ?



4)

Is the following statement a declaration or definition?
extern int i;



5)

. What will be the output of the program?

#include<stdio.h>

int main()

{

    int x=4, y, z;

    y = --x;

    z = x--;

    printf("%d, %d, %d\n", x, y, z);

    return 0;

}



6) How many times the while loop will get executed if a short int is 2 byte wide? #include int main() { int j=1; while(j <= 256) { printf("%c %d\n", j, j); j++; } return 0; }


7) What will be the output of the program? #include int main() { int x = 1, y = 2; if(!(!x) && x) printf("x = %d\n", x); else printf("y = %d\n", y); return 0; }


8)

#include<stdio.h>

int main()

{

    char *s1;

    char far *s2;

    char huge *s3;

    printf("%d, %d, %d\n", sizeof(s1), sizeof(s2), sizeof(s3));

    return 0;

}



9)

Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.



10) Which of the following special symbol allowed in a variable?
Page 1 of 2
Home | Register for Job Updates | Contact Us