A1.D.Q1. What will be output of the following c program?
#include<stdio.h>
int main(){
long int 1a=5l;
printf("%ld",1a);
return 0;
}
(A) 5
(B) 51
(C) 6
(D) Compilation error
(E) None of these
A1.D.Q2. What will be the output of the following statements?
int a = 3,b = 8; printf("%d", a<=b);
a) error
b) garbage value
c) 3
d) 1
A1.D.Q3. Consider on order of modifiers in following declaration:
(i) Char volatile register unsigned c;
(ii) Volatile register unsigned char c;
(iii) Register volatile unsigned char c;
(iv) Unsigned char volatile register c;
(A)Only (ii) is correct declaration
(B)Only (i) is correction declaration
(C)All are incorrect
(D)All are correct but they are different
(E)All are correct and same
Comments
Leave a comment