C Programming and Technical Programming Program

What will be the output of the program?
#include

int main()
{
int y=128;
const int x=y;
printf("%dn", x);
return 0;
}
Options
1) 128
2) Garbage value
3) Error
4) 0

Read Solution (Total 6)

C Other Question

What is difference between Structure and Unions? Point out the error in the following program.
#include
#include
fun(...);

int main()
{
fun(3, 7, -11.2, 0.66);
return 0;
}
fun(...)
{
va_list ptr;
int num;
va_start(ptr, n);
num = va_arg(ptr, int);
printf("%d", num);
}
Options
1) Error: fun() needs return type
2) Error: ptr Lvalue required
3) Error: Invalid declaration of fun(...)
4) No error