What's the best way to declare and define global variables?
Answer Posted / anurag aggarwal
after declaring the header files declare the global
variables to be used that is the best way.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is 2c dna?
Can we change the value of #define in c?
What is equivalent to ++i+++j?
What is a volatile keyword in c?
What are the types of functions in c?
Write a program to print all permutations of a given string.
Differentiate between ordinary variable and pointer in c.
What are the types of pointers in c?
What is c system32 taskhostw exe?
How to write a code for reverse of string without using string functions?
I need testPalindrome and removeSpace
#include
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
How can you read a directory in a C program?
Is printf a keyword?