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
What is logical error?
Explain how do you search data in a data file using random access method?
Where we use clrscr in c?
What is volatile variable in c?
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?
Is calloc better than malloc?
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
What will the preprocessor do for a program?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is the use of typedef in structure in c?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is pass by reference in functions?
Is it valid to address one element beyond the end of an array?
why return type of main is not necessary in linux
Why do we use & in c?