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 are actual arguments?

641


When should the register modifier be used? Does it really help?

607


Is that possible to add pointers to each other?

895


What is the difference between #include

and #include “header file”?

545


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1420






Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1890


Are there namespaces in c?

566


Which header file should you include if you are to develop a function which can accept variable number of arguments?

805


What does c mean in standard form?

593


What are the standard predefined macros?

630


When should volatile modifier be used?

553


How to write a code for reverse of string without using string functions?

1575


What is linear search?

678


What is a constant?

628


Explain what does it mean when a pointer is used in an if statement?

613