-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice4.cpp
More file actions
executable file
·64 lines (45 loc) · 843 Bytes
/
Copy pathpractice4.cpp
File metadata and controls
executable file
·64 lines (45 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include<iostream>
using namespace std;
void ppp(char *);
int main(){
char st[]="Pakistan";
ppp(st);
cout<<"OK";
}
void ppp(char *sss){
while(*sss != '\0'){
cout<<*sss<<endl;
*sss++;
}
}
/*
void display(char *);
void display(string);
int main(){
string str1;
char str[100];
cout<<"Enter a string"<<endl;
getline(cin, str1);
cout<<"Enter another string"<<endl;
cin.get(str, 100);
display(str1);
display(str);
return 0;
}
void display(char s[]){
cout<<"Entered char array is "<<s<<endl;
}
void display(string s){
cout<<"Entered string is "<<s<<endl;
}*/
/*
int main(){
char str[100];
cout<<"enter"<<endl;
cin.get(str,100);
cout<<"you entered \n"<<str<<endl;
string str;
cout<<"enter"<<endl;
getline(cin,str);
cout<<str<<endl;
}*/