what is the difference between static variable and register
variable?

Answer Posted / amit

static variable stored in RAM where as register variable
stored in CPU's register ,
we can find address of static variable which is not
possible in case of register variable

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we assign integer value to char in c?

831


What is the use of bitwise operator?

886


What is file in c language?

782


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1974


List some basic data types in c?

769


Explain what is wrong in this statement?

851


What is a void pointer in c?

847


How can I copy just a portion of a string?

1073


List the difference between a "copy constructor" and a "assignment operator"?

780


Tell us something about keyword 'auto'.

847


Explain enumerated types in c language?

799


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1242


What are the data types present in c?

853


What is the use of a semicolon (;) at the end of every program statement?

1148


What is data structure in c and its types?

822