What is the scope of static variables in c language?
Answer / dhanshri chabukswar
in c language the scope of a static variable depends on where it is declared
void func(){
static int x=0;
x++;
printf("%d",x);
}
scope - is x
out put- 123 if you call func()three times
| Is This Answer Correct ? | 0 Yes | 0 No |
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Explain heap and queue.
Are local variables initialized to zero by default in c?
what is a c-language.what is do.
Can we assign integer value to char in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Explain output of printf("Hello World"-'A'+'B'); ?
write a programme that inputs a number by user and gives its multiplication table.
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??
how to get starting address of a running C program
Explain how can I manipulate strings of multibyte characters?