Write a program to encrypt the data in a way that inputs a
four digit number and replace each digit
by (the sum of that digit plus 7) modulus 10. Then sweep the
first digit with the third, second digit
with the fourth and print the encrypted number.
No Answer is Posted For this Question
Be the First to Post Answer
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
If there are two catch statements, one for base and one for derived, which should come first?
Can you please explain the difference between overloading and overriding?
Is c++ harder than java?
When should you use global variables?
What is the difference between structures and unions?
What is a mutable member?
What should main() return in c and c++?
What is c++ library?
Do class declarations end with a semicolon?
Search for: what is pair in c++?
What is difference between n and endl in c++?