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

What is maximum size of array in c?

808


What is the use of pointers in C?

868


Which is better malloc or calloc?

891


Are enumerations really portable?

817


Explain the array representation of a binary tree in C.

982


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1425


What is the difference between variable declaration and variable definition in c?

829


what is the syallabus of computer science students in group- 1?

2102


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

826


Explain what are global variables and explain how do you declare them?

866


What is the use of sizeof?

786


Explain void pointer?

824


Explain what does a function declared as pascal do differently?

955


When is a “switch” statement preferable over an “if” statement?

891


Can you mix old-style and new-style function syntax?

877