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


Please Help Members By Posting Answers For Below Questions

What is logical error?

605


Explain how do you search data in a data file using random access method?

696


Where we use clrscr in c?

704


What is volatile variable in c?

656


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?

1511






Is calloc better than malloc?

574


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2234


What will the preprocessor do for a program?

588


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1927


What is the use of typedef in structure in c?

543


List the difference between a 'copy constructor' and a 'assignment operator' in C?

637


What is pass by reference in functions?

323


Is it valid to address one element beyond the end of an array?

674


why return type of main is not necessary in linux

1703


Why do we use & in c?

589