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

How do you determine the length of a string value that was stored in a variable?

859


How main function is called in c?

822


Can you assign a different address to an array tag?

900


What are the advantages of Macro over function?

1598


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

864


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1690


Explain that why C is procedural?

889


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1829


What is array in C

918


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

845


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

812


a value that does not change during program execution a) variabe b) argument c) parameter d) none

961


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1700


What is the equivalent code of the following statement in WHILE LOOP format?

1086


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

983