0

What is the difference between static variable and global variables

variables

13th Oct 2018, 6:35 AM
Hiral Jain
Hiral Jain - avatar
2 Answers
0
Global variablesĀ are declared outside of allĀ functions.Ā Global variablesĀ are stored in Data Segment of process. ... IfĀ static variablesĀ are declared outside of allĀ functionsĀ it will haveĀ globalscope or it is declared within afunctionĀ it will have scope within afunction andĀ it will retain until the life of program.
13th Oct 2018, 7:20 AM
Raziul Islam
Raziul Islam - avatar
0
write code for sum of two no. without using arithmetic operation?
26th Oct 2018, 3:30 AM
T ARUN KUMAR
T ARUN KUMAR - avatar