in Technology by
Can variables belonging to different scope have same name in C Programming? If so show an example ?

1 Answer

0 votes
by

Variables belonging to different scope can have same name as in the following code snippet.

int var;

void f() { 

   int var; 

}

main() { 

   int var; 

}

Related questions

0 votes
    anyone know the important questions of c programming tomorrow i have exam frnds.so please help me.promise I will mark brainliest . Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Course Results (${courseResponseList.getCourses().size()}) Want to show above div. jquery script. jQuery. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 6, 2022 in Education by JackTerrance
0 votes
    Course Results (${courseResponseList.getCourses().size()}) Want to show above div. jquery script. jQuery. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    What is the process of defining two or more methods within same class that have same name but different ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Using the WCF web programming model one can specify an operation contract like so: [OperationContract] [WebGet ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Can we use just the tag name of structures to declare the variables for the same?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    Which of this access specifies can be used for a class so that its members can be accessed by a different class ... & Packages of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    Which among the below directives belonging to the Cache-Control header of HTTP response provide information to the server that the ... -revalidate 3. no-cache 4. None of the above...
asked Jun 24, 2021 in Technology by JackTerrance
0 votes
    If we have 15 boys and 5 girls in a class which carries a higher probability? Getting a copy belonging to a boy ... give it a value? Select the correct answer from above options...
asked Nov 25, 2021 in Education by JackTerrance
0 votes
    If super class and subclass have same variable name, which keyword should be used to use super class? ( ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    When an object belonging to SAP name space is changed, it is ________________. A. Updation B. customer development C. Modification D. Change...
asked Feb 20, 2023 in Technology by JackTerrance
0 votes
    Why so JavaScript and Java have similar name? They both originated on the island of Java JavaScript's syntax is loosely based on Java's Both A and B None of the above...
asked Dec 24, 2020 in Technology by JackTerrance
0 votes
    Six dice are thrown simultaneously. The probability that exactly three of them show the same face and ramining three show ... ( 6 6 ) Select the correct answer from above options...
asked Nov 16, 2021 in Education by JackTerrance
...