Ques # :25 In a C program, one student writes floa...
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 # :25 In a C program, one student writes float a; a=5/3;. The other student writes; float a; a=5.0/3;. What will be the value of "a" if printed using printf function ?

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

  1. 1.6667 for both
  2. 1.0 for both
  3. 1.0 for first and 1.6667 for the second
  4. 1.6667 for the first and 1.0 for the second
Show answer

Answer: C. 1.0 for first and 1.6667 for the second

More RPSC Prelims previous year questions questions

All 8,445 RPSC Prelims previous year questions questions →