what is the difference between global variable & static
variable declared out side all the function in the file.
Answers were Sorted based on User's Feedback
Answer / vishnu
Both the variables are stored in data segment but difference
is in accessing the variable. Global variables can be
accessed though out the project (if multiple files exists)
whereas static variable accessed within the file where its
declared.
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / ashwinishaligram308
global variableis allocated on heap and static variables on
stack
| Is This Answer Correct ? | 2 Yes | 11 No |
plz answer..... a program that reads non-negative integer and computes and prints its factorial
What are header files and explain what are its uses in c programming?
Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
Is r written in c?
can anyone proide me reading material on svit00ef27@yahoo.com please thanx in advance
What is the modulus operator?
write a program in c language to print your bio-data on the screen by using functions.
6 Answers College School Exams Tests, IBM,
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
In a header file whether functions are declared or defined?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is the size of structure in c?
is c language is a object oreinted language?