You are here : Home >> All Company Study Materials >> DXC Archive >> DXC Output Based Questions
(adsbygoogle = window.adsbygoogle || []).push({});
- What will be the output of following code :
int main()
{
int a = NULL – true;
printf(“%d”,a);
return 0;
}
A. -1
B. Garbage value
C. 0
D. Error
(a)
- What will be the output of following code :
main()
{
extern int iExtern;
iExtern = 20;
printf(%d,iExtern);
}
A. 2
B. 20
C. Error
D. Warning
(c)
(adsbygoogle = window.adsbygoogle || []).push({});