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 are the 4 types of organizational structures?
What does c mean before a date?
What does %d do in c?
What is difference between scanf and gets?
Are pointers integers in c?
Explain output of printf("Hello World"-'A'+'B'); ?
What is a char in c?
What is a string?
Why we use break in c?
What are the difference between a free-standing and a hosted environment?
What are the functions to open and close file in c language?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
How can I do peek and poke in c?
Is calloc better than malloc?
Is stack a keyword in c?