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 are the types of linkages?


2) Point out the error in the following program. #include int main() { int (*p)() = fun; (*p)(); return 0; } int fun() { printf("Durga exams\n"); return 0; }


3)

Will the following code compile

void main()

{

int i=1;

while (i<=5)

{

printf("%d",i);

if (i>2)

goto here;

i++;

}

}

fun()

{

here:

printf("PP");

}



4) Let a and b be two integers such that a + b = 10. Then the greatest value of a x b is ___


5)

What will be the output of the program?

#include<stdio.h>

int main()

{

    unsigned int i = 65535; /* Assume 2 byte integer*/

    while(i++ >= 0)

        printf("%d",i);

    printf("\n");

    return 0;

}



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


7)

void  main()

{

int i=400,j=300;

printf("%d..%d");

}



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


9)

In the expression a=b=c=50 the order of Assignment is NOT decided by Associativity of operators



10) 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; }
Page 1 of 2
Home | Register for Job Updates | Contact Us