2. What does static variable mean?
Answers were Sorted based on User's Feedback
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 |
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 |
differnce between do and do while
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
What happens if header file is included twice?
What is the use of the function in c?
C program to find all possible outcomes of a dice?
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}
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?
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?
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
What's the total generic pointer type?
How macro execution is faster than function ?
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.