What's the best way to declare and define global variables?

Answer Posted / karnik ankit

the best way to declare and define global variables after
the header files or before the main function.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What functions are in conio h?

664


how to capitalise first letter of each word in a given string?

1436


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15515


What is a keyword?

752


Explain what is the difference between functions abs() and fabs()?

628






What is exit() function?

565


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

776


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

657


Is main is user defined function?

601


Why can arithmetic operations not be performed on void pointers?

594


What are the types of pointers?

608


Is main a keyword in c?

638


What is a MAC Address?

633


Do pointers take up memory?

666


program to convert a integer to string in c language'

1989