What is the function of fflush(stdin)?
What for the operator -> used?
ksri 0 Newbie Poster
Recommended Answers
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>Why to use 'struct' keyword?
Put simply, without the struct keyword the compiler doesn't know if you're referring to a type or a variable. The assumption is that it's a variable, and the symbol lookup fails. You don't need to do this with C++ because C++ automagically creates a typedef …
Jump to Post>struct student var1 = {123};
>may also be written as
>struct students var1.b = 123;
No, because the "struct student" part is defining a variable. You can't access the members of that variable directly using the dot operator until it's completely defined. This would work though:struct …
Jump to Post>Which Linux edition would you recommend for a beginner?
I'm not a hip Linux afficionado, so I'd recommend Mandrake (it's called Mandriva now though). It's easy to install and use, offers a live CD version, and has served me well. Another one you might take a look at is Knoppix. …
Jump to Post>is that correct?????
To be perfectly frank, I'm usually correct. If you aren't sure, it's safe to assume that everything I tell you is absolutely accurate.
All 20 Replies
Salem 5,265 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.