What are local and global variables?

Answer Posted / udayakumar

local variables are the variables which are declared with in
a function and the scope of that variables are only within
that function.Global variables are the variables which are
declared globally.Since it is declared globally it can
accessible to all the functions inside the program...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int far *near * p; means

3339


What is meant by operator precedence?

896


all c language question

2198


Are the variables argc and argv are local to main?

1026


The difference between printf and fprintf is ?

991


Is struct oop?

799


What is static identifier?

940


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1050


What is c definition?

982


Write a program to print ASCII code for a given digit.

912


Is it cc or c in a letter?

788


What is f'n in math?

850


Explain a pre-processor and its advantages.

873


Can you write a programmer for FACTORIAL using recursion?

838


formula to convert 2500mmh2o into m3/hr

776