what will be the output of "printf("%d%d",scanf("%d%
d",&a,&b))".provide an explation regarding the question
Answer Posted / amegha
scanf() returs the number of vlaues read successfully. so
heree the pritf() prints the value that is returned by the
scanf(), ie 2.(a,b). so the output will be 2 and some
garbage value.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Is c dynamically typed?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Is it acceptable to declare/define a variable in a c header?
What Is The Difference Between Null And Void Pointer?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Write a program to use switch statement.
about c language
What the different types of arrays in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is integer constants?
How can I read/write structures from/to data files?
How a string is stored in c?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What is c variable?