#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?
Answer Posted / 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 |
Post New Answer View All Answers
How can a process change an environment variable in its caller?
What are the header files used in c language?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Explain the process of converting a Tree into a Binary Tree.
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Explain about C function prototype?
How can I generate floating-point random numbers?
What is binary tree in c?
What are the advantages of using Unions?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What are the different types of C instructions?
What is a lvalue
What are the different types of pointers used in c language?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is the usage of the pointer in c?