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

What is the output of the C-program? int main(){ int i=0; int x=i++; int y=++i; printf("%d %d", x,y); }

Solution

Solution: The snippet shown misses a declaration of y (outside initialization), so it will not compile. Hence, it gives a compilation error.
Answer: (D) compile error

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...