Ques # :22 What will be the output of the program...
Guiding State PSC aspirants since 2016 50,000+ students · 1,000+ final selections Exam Calendar Results Call 9116926003
pscnotes
Pick your state
RPSC Prelims previous year questions

Ques # :22 What will be the output of the program ? #include<stdio.h> int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }

Asked in RPSC 23Feb 2016Question Paper for VicePrincipal/Superintendent ITI Screening Test 2012(Information Technology)VICE PRINCIPAL/SUPDT. ITI - 2012

  1. 2, 1, 15
  2. 1, 2, 5
  3. 3, 2, 15
  4. 2, 3, 20
Show answer

Answer: C. 3, 2, 15

More RPSC Prelims previous year questions questions

All 8,445 RPSC Prelims previous year questions questions →