hello
I know that question is very simple for all of you but it's not for me
i just need the answers
thank you all
1- write a program that reads 2 strings of the same length from the user and prints"same" if these strings are identical
else it prints"different"
2- find and correct the error
Code:
void fun(const int b[],int n)
{ for(int i=0,i<n,i++)cout<<++b[];}
void main( ){ int a[5]={2,4,3,5,6}:fun{a,5);}
Code:
int b[9]={0,1,2,3,4,5,6,7,8,9};
for (int i=0,i<=9.i++)b[i]=i;
3-what will the output of the following code
Code:
float x[10]={5.5,6.5,7.5,8.5,9.5,12.5,14.5,16.5,18.5,20.5}
cout <<static cast<int>(x[9/2]/2;
4- write a program that reads the mode value of the following data elements
Code:
{1,1,2,2,3,5,5,9,8,7,7,5,2,75,2,2,4,4,)