How to add two numbers without using arithmetic operators?
Answer Posted / prashant
even this gives the same ans as the above program gives...
just every one plz check it and tell me
#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c;
printf("enter the nos");
scanf("%d %d",&b,&c);
a= (b^c);
printf("%d",a);
return 0;
}
| Is This Answer Correct ? | 19 Yes | 114 No |
Post New Answer View All Answers
What is a pointer variable in c language?
What is pass by value in c?
What is sorting in c plus plus?
Explain null pointer.
a program that can input number of records and can view it again the record
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
How can I list all of the predefined identifiers?
Do variables need to be initialized?
Explain 'bit masking'?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
how to count no of words,characters,lines in a paragraph.
What are the functions to open and close file in c language?
Explain what is the difference between a string and an array?
What is type qualifiers?
What is c system32 taskhostw exe?