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.

Previous Year Question (PYQs)



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





Practice With Us

Practice Makes A Man Perfect. Comment your solution and approach for this question.

Video solution of this question 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.

loading...
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

Your reply to this comment :


loading...