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's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
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
what is electronic software
Write a program to print the swapping in two no and using three variable.
Waht is inheritance
write a program that input four digit number and find how many 7 that number contains
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
what is use of for loop?
what are you now programming Languages C+
What is Object Oriental Progam
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999