2) goto here; i++; } } fun() { here : printf( "PP" ); } 1 2 Compilation error Exception occurs Compiler error: U"> 2) goto here; i++; } } fun() { here : printf( "PP" ); } 1 2 Compilation error Exception occurs Compiler error: U">
logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Programming See What Others Are Saying!
  • Question
  • Output of the Program : main() { int i = 1; while (i <= 5) { printf( "%d", i ); if (i > 2) goto here; i++; } } fun() { here : printf( "PP" ); }


  • Options
  • A. 1
  • B. 2
  • C. Compilation error
  • D. Exception occurs

  • Correct Answer
  • Compilation error 

    Explanation

    Compiler error: Undefined label 'here' in function main


  • More questions

    • 1. In the relational model, relationships between relations or tables are created by using:

    • Options
    • A. composite keys.
    • B. determinants.
    • C. candidate keys.
    • D. foreign keys.
    • Discuss
    • 2. What does microprocessor speed depend on?
    • Discuss
    • 3. What does RSI stand for?
    • Discuss
    • 4. Which Stack is used in 8086?
    • Discuss
    • 5. What is object repository?
    • Discuss
    • 6. Which is the Stack used in 8085?
    • Discuss
    • 7. What does GUI stand for?
    • Discuss
    • 8. What is the main reason the OSI Model was created?
    • Discuss
    • 9. Ethernet uses which topology

    • Options
    • A. Star
    • B. Bus
    • C. Twisted pair
    • D. Both B & C
    • Discuss
    • 10. What are various scheduling queues?
    • Discuss


    Comments

    Avatar
    Abdulmunim
    I like it


Enter a new Comment