main()
{
int a,b;
printf("%d,%d",scanf("%d%d",&a,&b));
}
=> do u mean above program's output...
=>output will be:2,whatever you enter value for b.
=>because scanf is a library fn which will return how many
arguements it processes, and second value
you are right mr.Satya but i found my self unable to
understand that for the first time scanf returns the no of
successful matches but how for the second time it returns
the value of 'b'.while a function should return the
same 'r' value every time.
What are the disadvantages of a shell structure?
If we give two names then this displays the connection between the two people. It is nothing but flames game
Explain the process of converting a Tree into a Binary Tree.
Write a program in c to replace any vowel in a string with z?
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.
Describe static function with its usage?
write a prgram of swapping with 2 valiables
code for reverse alternate words from astring
What is the difference between the = symbol and == symbol?
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is
Are the variables argc and argv are always local to main?