Question: Exercise for debugging Try to fix a few errors in this program. Should display the output // C++ Program to execute 3 function from parameter

Exercise for debugging Try to fix a few errors in this program. Should display the output

// C++ Program to execute 3 function from parameter passing that used pointer, array and primitive data type //Question1.cpp #include using namespace std; int countNotCheap( int []); void secret1(char,char a[]); //1 float calculate(int,float []); int main() { int item[5]={100,2,2,200,500}; float arr1[4]={2.0,3.0,4.0,5.0}; char data[20],d*; char gg='e'; d*=gg; cout< 5 ) count++; return count; } void secret1(char *a,char s[]) { for(int x=0;x

OUTPUT:

3 28 Key in your password : rEst bEst New Password : rest best

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!