What will be the output of the program? #include<stdio.h> int main() { const c = -11; const int d = 34; printf("%d, %d\n", c, d); return 0; }

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

What will be the output of the program? #include<stdio.h> int main() { const c = -11; const int d = 34; printf("%d, %d\n", c, d); return 0; } Answer: -11, 34

Step 1: const c = -11; The constant variable 'c' is declared and initialized to value "-11". Step 2: const int d = 34; The constant variable 'd' is declared as an integer and initialized to value '34'. Step 3: printf("%d, %d\n", c, d); The value of the variable 'c' and 'd' are printed. Hence the output of the program is -11, 34

Question context

This question is part of 💡 C Programming within the broader 💻 Programming subject and appears in the DemoPaper-Pakistan preparation collection. Reviewing the answer together with nearby questions helps reinforce the underlying concept and identify how it may appear in competitive exams.