#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / mayank kumar
i=5
j=11
| Is This Answer Correct ? | 22 Yes | 10 No |
Post New Answer View All Answers
What is the benefit of using const for declaring constants?
how can f be used for both float and double arguments in printf? Are not they different types?
What is strcmp in c?
What is a built-in function in C?
What are the advantages of c preprocessor?
Is it better to bitshift a value than to multiply by 2?
What is the scope of global variable in c?
c program to compute AREA under integral
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Write a program for Overriding.
Explain how to reverse singly link list.
What are data types in c language?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
what are the 10 different models of writing an addition program in C language?