Example Paper 2 - BlueStar Whole Testpaper
BLUE STAR INFOTECH Question Papers 3 20041.What would be the output of the following program.#include<stdio.h>main(){extern int a;printf("%d",a);;}int a=20;(a) 20 (b) 0 (c) garbage value (d) error!!2.What would be the output of the following program.main(){int a[5]={2,3};printf("\n %d %d %d",a[2],a[3],a[4]);}(a) garbage value (b) 2 3 3 (c) 3 2 2 (d) 0 0 03.What would be the output of the following program.main(){inti=-3,j=2,k=0,m;m=++i&&++j||++k;printf("\n %d %d %d %d",i,j,k,m);}(a) -2 3 0 1 (b) -3 2 0 1 (c) -2 3 1 1 (d) error4.What would be the output of the following program.main(){int a,b;a=sumdig(123);b=sumdig(123);printf("%d %d",a,b);}sumdig(int n){static int s=0;int...