#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
What is break statement?
pierrot's divisor program using c or c++ code
What is the difference between text and binary i/o?
Explain can static variables be declared in a header file?
Explain void pointer?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What does sizeof int return?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
What functions are used for dynamic memory allocation in c language?
List the difference between a While & Do While loops?
What are the advantages of Macro over function?
Why are all header files not declared in every c program?
What is the use of pragma in embedded c?
What are header files in c programming?
What is signed and unsigned?