wap in c++ which accept a integer array and its size as
argument and replaces element having even values with its
half and element having odd values with twice its value
Answer / ashish
void update(int arr[], int size)
{
for(int i =0;i<size;i++)
{
if(arr[i]%2) arr[i] *= 2;
else arr[i] /= 2;
}
}
| Is This Answer Correct ? | 14 Yes | 11 No |
what are you now programming Languages C+
Diffrernce Between Overloading and Overriding?
what is strcture i++ i ++i answer to this i=5 what is the out put
Explain when u will use Observer pattern and how u will implement in c++ .
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
WHAT IS FIBONACCI SERIES?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
What do stl stand for?
#define CUBE(x) (x*x*x) main() { int a,b=3; a=cube(b++); printf("%d %d",a,b); } What should be the value of a and b? My calc a=4 but syst a=6 how pls tell me if you know it?
What is a standard template library (stl)?
How does an stl file work?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html