Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET


Best NIMCET Coaching
Aspire Study
Online Classes, Classroom Classes
and More.

Aspire Study Library


Question Id : 5714 | Context :DU MCA 2019

Question

main() 
   { 
     int i = 4; 
     int j = 10; 
         Statements of the program 
         if ( i > 0) 
           { 
              int i = 44; 
              Statements of the program 
           }
    } 

Given 
I. The local value of I is 44 
II. The global value of I is 4 then
🎥 Video solution / Text Solution of this question is given below:


Aspire Study Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Aspire Study Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.
Manish-pic
Manish , student
Commented Jan 01 , 2024
option 3 is correct as the global value are given at the start of code and local variable is given in if condition so option 3 is correct both 1 and 2 are true