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
What are the features of c language?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
write a program to generate address labels using structures?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What is %s and %d in c?
What is adt in c programming?
write a c program in such a way that if we enter the today date the output should be next day's date.
Write a program to show the change in position of a cursor using c
how to find anagram without using string functions using only loops in c programming
Where does the name "C" come from, anyway?
Write a progarm to find the length of string using switch case?
What is c mainly used for?
Whats s or c mean?
What is auto keyword in c?
What are predefined functions in c?