English

Select the Correct Option from Multiple Choice Question.Study the Following C Programvoid Main() {Int A=0;For( ;A;);A++; }What Will Be the Value of the Variable A, on the Execution of Above Program - Structured Programming Approach

Advertisements
Advertisements

Question

Select the correct option from multiple choice question.

Study the following C program
Void main() {
int a=0;
for( ;a;);
a++; }
what will be the value of the variable a, on the execution of above program

Options

  • 1

  • 0

  • -1

  • None of these

MCQ

Solution

1

shaalaa.com
Variables in C - Programming
  Is there an error in this question or solution?
2017-2018 (June) CBCGS

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×