Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~305 People Reached
Favorite Forums
Favorite Tags
c x 4
Member Avatar for Takarakujin

I want to hold user input strings in an array and be able to print it. Is there a way for me to hold string 1 in arr[0], string 2 in arr[1] and so on and so forth? heres what Im thinking [CODE] int p=1, r=3, l=0; char arr[255]; while(p …

Member Avatar for Software guy
0
74
Member Avatar for Takarakujin

Basically I am totally confused on how to pass a char, which is given by the user, and then store it and pass it to another function by reference.

Member Avatar for Ancient Dragon
0
98
Member Avatar for Takarakujin

[CODE] int main() { char c1, c2; printf("Enter a character: "); scanf("%c", &c1); printf("Enter another character: "); scanf("%c", &c2); system("pause"); return; } [/CODE] Thats what my code looks like, the problem is the code skips the part where it lets you input c2. I dont understand why its doing this. …

Member Avatar for gerard4143
0
133