2. What does static variable mean?

Answers were Sorted based on User's Feedback



2. What does static variable mean?..

Answer / sai

static variable in c defined as the value of the static
variable is fixed in that program.
That means the chages will not effect the static variable
values.

Is This Answer Correct ?    3 Yes 0 No

2. What does static variable mean?..

Answer / avik bagh

A static variable is a variable that you can call and use without using an object of the class it is a part of. You can use a static variable using just the class name.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

differnce between do and do while

3 Answers   DOEACC,


find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }

10 Answers   Amdocs, TCS,


What happens if header file is included twice?

0 Answers  


What is the use of the function in c?

0 Answers  


C program to find all possible outcomes of a dice?

0 Answers  






array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}

12 Answers   Google, Motorola,


44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?

6 Answers   Amdocs,


Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?

2 Answers   Excel,


how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.

2 Answers  


What's the total generic pointer type?

0 Answers  


How macro execution is faster than function ?

0 Answers   Wipro,


pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.

4 Answers   Persistent, Valyoo,


Categories