what will be the output of this program........
main()
{
int a=2,b=4,c=6;
printf("%d");
}
why it gives the value of third variable.
Answer Posted / srsabariselvan
6
because it'll print the last garbage value stored.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
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?
how to find anagram without using string functions using only loops in c programming
What is the use of c language in real life?
Is return a keyword in c?
What is null pointer in c?
What is #include conio h?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What are structure members?
What are the different types of constants?
In C language what is a 'dangling pointer'?
How can you increase the size of a dynamically allocated array?
Explain what is the stack?
What is the difference between far and near in c?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is the best style for code layout in c?