Friday 30 January 2009

c language questions

(5)Find the correct output void main() { char a[4]=”rama”; char b[]=”shyama”; printf(“%d %d”, sizeof(a),sizeof( b)) ; } (a) 4 7 (b) 5 6 (c) 5 7 (d) 4 6 (6)Find the correct output void main() { int a[]={‘a’,’b’,’c’}; printf(“%d”, sizeof(a)); } (a)3 (b)4 (c)can’t be initialized (d)None of these (7)

No comments:

Post a Comment