in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?

Answer Posted / sumit mondal

yes of course it is valid.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to draw the flowchart for structure programs?

8763


Explain spaghetti programming?

684


Does sprintf put null character?

604


What is the translation phases used in c language?

637


c language interview questions & answer

1464






When should structures be passed by values or by references?

586


Which control loop is recommended if you have to execute set of statements for fixed number of times?

811


What is data structure in c language?

608


What is pointer and structure in c?

575


How can you tell whether two strings are the same?

835


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

721


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1675


What is a pointer in c?

684


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1499


What is a string?

667