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
What is wild pointer in c with example?
Is register a keyword in c?
Explain what is the best way to comment out a section of code that contains comments?
Differentiate between new and malloc(), delete and free() ?
What is structure in c language?
Is there any data type in c with variable size?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is the use of structure padding in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Write a program to swap two numbers without using the third variable?
In C, What is the #line used for?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Why is a semicolon (;) put at the end of every program statement?
Explain the advantages and disadvantages of macros.