Consider the following two C lines: int var1; exte...
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

Consider the following two C lines: int var1; externint var2; Which of the following statements is correct?

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

  1. Both statements only declare variables, don't define them.
  2. First statement declares and defines var1, but second statement only declares var2
  3. Both statements declare define variables var1 and var2
  4. None of these
Show answer

Answer: B. First statement declares and defines var1, but second statement only declares var2

More RPSC Prelims previous year questions questions

All 8,445 RPSC Prelims previous year questions questions →