If the static variable is declared as global,
will it be same as extern?
Answer / venkat
static :if i declare the static varible as global that
variable i can acces only with in the file (i.e i can't
access that variable from other file )
extern :if the varible i declared as extern than that extern
variable i can acces from other file also
| Is This Answer Correct ? | 29 Yes | 4 No |
write a Program to dispaly upto 100 prime numbers(without using Arrays,Pointer)
26 Answers ADITI, iFlex, Infosys, Oracle, TCS, Unicops, Wipro,
How can I sort more data than will fit in memory?
Convert the following expression to postfix and prefix (A+B) * (D-C)
What are the different types of pointers used in c language?
Can we assign integer value to char in c?
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).
5 Answers Microsoft, Motorola,
What is string length in c?
write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.
main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }
write a program fibonacci series and palindrome program in c
0 Answers Aditi Placement Service,
1 1 2 1 2 3 1 2 3 4 1 2 3 1 2 1 generate this output using for loop