what is the value of b
if a=5;
b=++a + ++a
Answer Posted / kaps
IT is defenetly 14...Ans = 14
Explanation:
Because ++a = 6
then again ++a = 7
Now compiler replace the both value with 7 (because of both
are of value of a).
So 7+7 = 14.
It is tested on turbo C...
try with adding one more ++a will give u ans 24(8+8+8) for
++a + ++a + ++a.
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What are dangling pointers in c?
What is the use of static variable in c?
What is this infamous null pointer, anyway?
What is pass by value in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How do you convert strings to numbers in C?
what is bit rate & baud rate? plz give wave forms
Is c dynamically typed?
i want to know the procedure of qualcomm for getting a job through offcampus
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What is difference between main and void main?
What is the difference between #include
Explain how can I convert a string to a number?
What is C language ?