main()
{
int i;
for(i=0;i<5;i++)
printf("%d",1l<<i);
}
why doesn't 'l' affect the code??????
In 1l, 'l' converts number 1 from int to long int.
It is a valid expression
| Is This Answer Correct ? | 2 Yes | 0 No |
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?
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
What is exit() function?
How many levels of pointers can you have?
what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }
What is I ++ in c programming?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
what is unsigened char and what is the difference from char
How can I read a binary data file properly?
What is difference between main and void main?
Explain what are run-time errors?
How can you read a directory in a C program?