What is the function of fflush(stdin)?
What for the operator -> used?
ksri
0
Newbie Poster
Recommended Answers
Jump to Post> What is the function of fflush(stdin)?
It's undefined
It's undefined> What for the …
Jump to PostUgh, what an awful example.
>void main()
int main ( void ). No excuses, and the only portable return values are 0, EXIT_SUCCESS, and EXIT_FAILURE (defined in stdlib.h). Returning nothing isn't an option.>student var1,*a;
While your C++ compiler might accept this, the C language requires that you …
Jump to Post@narue
Wow, that's a nice explaining there. Which compiler do you use? While, we are here asking about functions, can I ask which would a replacement forgetch();
for C. I have read through some of the threads here, stating that it's an compiler extension. What code should we put …
Jump to Post@Koyong
Please use the code snippets, it's really annoying reading these, and we can't understand the text.
Also, while declaring variables like option try going for global static it'll be much easier to access.The very first error is simple and like total basic. in Line no. 63 you …
Jump to PostThe curly brackets are used to initialize each member of a structure. you are not using
struct student var1 = {123};
to declare a variable. It's a structure, so it must be passes with the {}. A structure can have 'n' number of data types, so to specify each …
All 20 Replies
Salem
5,138
Posting Sage
jotsaroop
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
ksri
0
Newbie Poster
jotsaroop
0
Newbie Poster
ChaseVoid
30
Junior Poster
ChaseVoid
30
Junior Poster
ksri
0
Newbie Poster
ChaseVoid
30
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
ksri
0
Newbie Poster
ChaseVoid
30
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
ChaseVoid
30
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
ChaseVoid
30
Junior Poster
bdm10321
0
Newbie Poster
ChaseVoid
30
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
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.