int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p?
Answer Posted / vignesh1988i
a=2 and b=3;;;; why it dosent print the value of 'c' is...
we didnt specify any format specifications....... so we wont
get c value...
but if we have given the format specifications and if we
dont give any argument to it... the garbage value will be
your o/p
printf("%d");
the o/p is :: some garbage values....
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
When should you use a type cast?
What are the preprocessor categories?
Which type of language is c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
How can I prevent another program from modifying part of a file that I am modifying?
Do array subscripts always start with zero?
Difference between Shallow copy and Deep copy?
Is flag a keyword in c?
What is bubble sort technique in c?
Define macros.
What does *p++ do?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What are logical errors and how does it differ from syntax errors?