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
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?
I need a sort of an approximate strcmp routine?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
Explain pointers in c programming?
What is c language & why it is used?
main() { float a=3.2e40; printf("%d",a); }
What's the right way to use errno?
write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview
2 Answers Satyam, UNIS, Wipro,
How to set file pointer to beginning c?
largest Of three Number using without if condition?
write a prgram of swapping with 2 valiables
write a program of palindrome(madam=madam) using pointer?