i need help to understand how can i write a c program for storing 10
books information like book name,authorname,depertment of book
by usingstructure and function in c .
i need help to understand how can i write a c program for storing 10
books information like book name,authorname,depertment of book
by usingstructure and function in c .
A development process
1. Read a book name into a single variable.
2. Read a book author into another single variable name.
3. Put both variables in a struct, create a single instance of that struct, and adapt your program.
4. Make an array of your variable, and adapt your program.
5. Move the code to read into an array into a separate function, and pass the array as a parameter.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
GIVE ME AN EXAMPLE WITH C PROGRAM IF IT IS POSSIBLE FOR YOU.tHANKS IN ADVANCE.
Two things I don't like.
1. Lack of effort.
2. Yelling.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
If you can't get off your arse to even attempt the first step, you deserve to fail.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.