All India Exams
  • Sign In / Register Sign In
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Control Flow Statements C Questions And Answers

Here you can find Control Flow Statements C Questions and Answers.

Why Control Flow Statements C Questions and Answers Required?

In this Control Flow Statements C Questions and Answers section you can learn and practice Control Flow Statements C Questions and Answers to improve your skills in order to face technical inerview conducted by Banks. By Practicing these interview questions, you can easily crack any Bank Exams interview.

Where can I get Control Flow Statements C Questions and Answers?

AllIndiaExams provides you lots Control Flow Statements C Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Control Flow Statements C Questions and Answers as PDF files and eBooks.

How to solve these Control Flow Statements C Questions and Answers?

You no need to worry, we have given lots of Control Flow Statements C Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.

Control Flow Statements C Questions & Answers

1. Which keyword can be used for coming out of recursion?

Control Flow Statements C Questions & Answers

2. What is the output of this C code? int main() { int a = 0, i = 0, b; for (i = 0;i < 5; i++) { a++; continue; } }

Control Flow Statements C Questions & Answers

3. What is the output of this C code? int main() { int a = 0, i = 0, b; for (i = 0;i < 5; i++) { a++; if (i == 3) break; } }

Control Flow Statements C Questions & Answers

4. The keyword ‘break’ cannot be simply used within:

Control Flow Statements C Questions & Answers

5. Which keyword is used to come out of a loop only for that iteration?

Control Flow Statements C Questions & Answers

6. What is the output of this C code? void main() { int i = 0, j = 0; for (i = 0;i < 5; i++) { for (j = 0;j < 4; j++) { if (i > 1) break; } printf("Hi \n"); } }

Control Flow Statements C Questions & Answers

7. What is the output of this C code? void main() { int i = 0; int j = 0; for (i = 0;i < 5; i++) { for (j = 0;j < 4; j++) { if (i > 1) continue; printf("Hi \n"); } } }

Control Flow Statements C Questions & Answers

8. What is the output of this C code? void main() { int i = 0; for (i = 0;i < 5; i++) if (i < 4) { printf("Hello"); break; } }

Control Flow Statements C Questions & Answers

9. What is the output of this C code? void main() { int i = 0; if (i == 0) { printf("Hello"); continue; } }

Control Flow Statements C Questions & Answers

10. What is the output of this C code? void main() { int i = 0; if (i == 0) { printf("Hello"); break; } }

Home

Control Flow Statements - C Multiple Choice Questions & Answers :: Discussion


   What is the output of this C code?


    int main()

    {

        short i;

        for (i = 1; i >= 0; i++)

            printf("%d\n", i);

    }

 
A. The control won’t fall into the for loop B. Numbers will be displayed until the signed limit of short and throw a runtime error
C. Numbers will be displayed until the signed limit of short and program will successfully terminate D. This program will get into an infinite loop and keep printing numbers with no errors

Answer & Explanation

Answer: Option C

Explanation:

none

Workspace

Report Error


  • Workspace
  • Report
Write your comments here:

Related Topics:

  • Data Types
  • Structures, Unions, Bit-fields
  • C Operators
  • Pointers
  • Storage Management
  • Declarations
  • C Functions
  • Variable Names
  • Constants
  • File Access

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • LIC Mock Test Series

  • MAT Mock Test

  • SEBI Mock Test

  • ESIC Mock Test

  • IT Courses Quiz

Newsletter

Contact Us

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning Questions
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation Questions
  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics
  • iOS Interview Questions
  • Web Technologies
  • Database Interview Questions
  • MS Office Interview Questions
  • Software Tools
  • Data Interpretation
  • PHP Interview Questions
  • CAT Mock Test
  • SSC Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy