If I want to initialize the array like.
int a[5] = {0};
then it gives me all element 0.
but if i give int a[5] = {5};
then 5 0 0 0 0 is ans.
what will I do for all element 5 5 5 5 5 in a single
statement???
Answers were Sorted based on User's Feedback
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
How can I automatically locate a programs configuration files in the same directory as the executable?
WHAT IS HEADER?
What are the two types of functions in c?
What is calloc() function?
CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION.
Is array a primitive data type in c?
I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be int or float etc. Does this statement meaningful and where it can be used?
What does *p++ do? What does it point to?
what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā %d\nā,sum); } what is the difference between a=10 and a=010??
Explain how do you declare an array that will hold more than 64kb of data?