Aspire Faculty ID #12644 · Topic: JECA MCA 2024 · Just now
JECA MCA 2024

What is the output of the following C-program?
#include
int main() { 
const int a=10; 
printf("%d", +a); 
return 0; 
}

Solution

The constant a=10. Unary +a does not increment, it only returns the same value.
So, output = 10.
Answer = (B) 10

Previous 10 Questions — JECA MCA 2024

Nearest first

Next 10 Questions — JECA MCA 2024

Ascending by ID
Ask Your Question or Put Your Review.

loading...