what are the static variables

Answer Posted / smriti patnaik

static variables are variables that are initiated only once
in a memory,suppose u have initiated a variable as static
everytime u visit a iteration the value is changed 4m the
initialised value,not like auto variables where the values
remain same everytime u visit a iteration

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array within structure?

581


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

648


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

660


How can I make it pause before closing the program output window?

577


how to write a c program to print list of fruits in alpabetical order?

1786






What is a static function in c?

620


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

974


What is a pointer value and address in c?

630


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

673


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

575


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1652


What is the use of #define preprocessor in c?

613


Why is not a pointer null after calling free?

589


What is methods in c?

637


What is #error and use of it?

677