Aspire Faculty ID #12762 · Topic: JECA MCA 2023 · Just now
JECA MCA 2023

What is the output?

#include <stdio.h>
void main(){
  int i = -9;
  printf("%d %d %d", i++, ++i, ++i);
}

Solution

Ek hi expression me variable i par multiple modifications → C standard me undefined behavior.
Isliye koi fixed output/compile error guarantee nahi. Sahi option: None of these.

Previous 10 Questions — JECA MCA 2023

Nearest first

Next 10 Questions — JECA MCA 2023

Ascending by ID
Ask Your Question or Put Your Review.

loading...