Answer Posted / gg
Try this....
main()
{
int a,b;
printf("Enter two integers \n");
scanf("%d%d",&a,&b);
printf("The diff is : %d ",a+(~b+1));
}
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
hi any body pls give me company name interview conduct "c" language only
hi, which software companys will take,if d candidate's % is jst 55%?
Write a program to swap two numbers without using the third variable?
What are void pointers in c?
Explain what is #line used for?
List some of the static data structures in C?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What are the disadvantages of c language?
What is a string?
find the sum of two matrices and WAP for it.
Can you assign a different address to an array tag?
What is structure in c definition?
What is dynamic variable in c?
What is the explanation for prototype function in c?
how do you execute a c program in unix.