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.
Takarakujin
0
Newbie Poster
Recommended Answers
Jump to Postpass it the same as anything else
void foo(char *c) { } int main() { char c = 'A' foo(&c); }
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Takarakujin
0
Newbie Poster
abhimanipal
91
Master Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.