#include<stdio.h> void main() { int a=10,b=20,c=30;
printf("%d",scanf("%d%d%d",&a,&b,&c)); }
what is the output for this?
Answers were Sorted based on User's Feedback
Answer / sorab
IT will print 3 becoz in the inner statement of printf()you have scanf() statement .scanf() will take the 3 inputs from user and after that it will return 3 to printf()and 3 display on screen
printf("%d",scanf("%d%d%d%d",&a&b&c));
it will display 4 on screen ...
| Is This Answer Correct ? | 6 Yes | 3 No |
write a c program that prints all multiples of 3between 1 and 50.
int x=sizeof(!5.856); What will value of variable x?
write a c program to find reminder and quotient if one number is divided by other.to code this program don't use more than 2 variables
How can I write a function that takes a format string and a variable number of arguments?
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
Is swift based on c?
Explain how can I right-justify a string?
Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
When do we get logical errors?
What is this pointer in c plus plus?
How to write a program to receive an integer & find its octal equivalent by using for loop?