Write a single instruction that will find the remainder of
integral division when x is divided by y. Have the answer
stored in z.

Answer Posted / nithin devang

z=x%y;

my answer surety %=60%
_Nithin Devang

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stoi in c++?

690


What is a stack c++?

563


Do vectors start at 0 c++?

523


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1451


What is the importance of mutable keyword?

572






Do you know about latest advancements in C++ ?

650


What are the vectors in c++?

574


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2276


Why do we use using namespace std in c++?

595


What is virtual base class?

561


What is vector processing?

660


What is the difference between strcpy() and strncpy()?

602


how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

1808


What is the purpose of ios::basefield in the following statement?

780


What is an object in c++?

604