
- Forum
- Programming Talk
- C and C++
- minus operator
minus operator
This is a discussion on minus operator within the C and C++ forums, part of the Programming Talk category; Can Any One Solve This Question...?? Implement Minus '-' operator without Using it........... eg:- i hav to subtract 'b' from ...
-
02-14-2010, 11:05 AM #1
- Join Date
- Jan 2010
- Answers
- 1
minus operator
Can Any One Solve This Question...??
Implement Minus '-' operator without Using it...........
eg:-
i hav to subtract 'b' from a' but i can not use '-'.....reply plz
-
multiply b by zero
thank you
please help me to solve this question
xxxxxxxxxxxx
Determine 20 patterns and texts which will result in the worst case performance and create a scattergraph of
CPU execution time plotted against length(text)*length(pattern). The product, length(text)*length(pattern),
should be approximately equal to, 102, 104, 106, 108 and 1010, and for each product you should construct 4
pattern-text examples. As a guide you should ¯nd that the worst case execution time for a product length
of 1010 is over 10 seconds. The total ¯le size should be no more than 100MBytes. Note: you will need to
write a simple c program to generate the text and pattern ¯les.
xxxxxxxxxxxxxxxxx
-
-
07-24-2010, 05:54 PM #4
- Join Date
- Jul 2010
- Answers
- 1
We can use Bitwise complement operator
int a=15,b=10;
pf("%d", a+(~b+1));
ans:5
-
Sponsored Ads

Reply With Quote






