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 / srinivas

the above question will give the output 0.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

1520


What is a string?

672


Explain what is the benefit of using const for declaring constants?

620


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1777


Why does this code crash?

627






Why isn't any of this standardized in c? Any real program has to do some of these things.

632


What is multidimensional arrays

639


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

641


What is c basic?

610


What are the scope of static variables?

612


How are variables declared in c?

607


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

730


please send me the code for multiplying sparse matrix using c

1733


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15065


What is the mean of function?

657