what is the difference between postfix and prefix unary
increment operators?
Answer Posted / bhupender
PER FIX UNARY INCREMENT OPERATION IS ++I
POSTT FIX UNARY INCREMENT OPERATION IS i++
WHEN WE USE THIS IN PROGRAM THE RESULT WILL
FOR ++i IS
LIKE TWO VERIABLE INT A=5 AND B=++A+5 THEN
IN RESULT IT SHOWS A =5 BUT B WILL 10(5+5)
BUT IN POST FIX IT
A=5 BUT B= A++ MEANS A+1 AND RESULT FOR B WILL 11
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Can I initialize unions?
Why c is a procedural language?
What is local and global variable in c?
How is actual parameter different from the formal parameter?
What is a structure member in c?
What are global variables and explain how do you declare them?
Where static variables are stored in c?
What is main return c?
What is line in c preprocessor?
what are bit fields? What is the use of bit fields in a structure declaration?
What is the right type to use for boolean values in c?
What is dangling pointer in c?
What is the difference between array_name and &array_name?