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

How many levels of pointers have?

608


Is anything faster than c?

595


Tell me what is null pointer in c?

623


How can I remove the trailing spaces from a string?

624


What is sizeof c?

628






What is adt in c programming?

631


What is substring in c?

649


What is the argument of a function in c?

585


What is c basic?

614


What does sizeof return c?

618


Why is it important to memset a variable, immediately after allocating memory to it ?

1564


When can you use a pointer with a function?

578


Differentiate between calloc and malloc.

777


What is function pointer c?

595


What is file in c language?

588