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
What does malloc () calloc () realloc () free () do?
what are far pointers?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
biggest of two no's with out using if condition statement
what is bitwise operator?
c pgm count no of lines , blanks, tabs in a para(File concept)
Describe the order of precedence with regards to operators in C.
Are pointers really faster than arrays?
What is the scope of static variables in c language?
What are examples of structures?
when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none
Explain what is the most efficient way to store flag values?