implement OR gate without using any bitwise operator.
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.
Are the expressions * ptr ++ and ++ * ptr same?
write a program to find the sum of the array elements in c language?
24 Answers ICT, Infosys, Wipro,
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
int i=10; printf("%d %d %d", i, i=20, i);
pierrot's divisor program using c or c++ code
What is difference between structure and union in c?
What is the difference between %d and %i?
What is assert and when would I use it?
Does c have function or method?
what will be the output of" printf("%d%d",scanf("%d% d",&a&b));"
The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);
1 Answers HCL, Public Service Commission,