Suppose i have a structure like
struct
{
char text[20];
float radius;
float area;
}circle[10];
how can i represent the above structure using flowchart
You can't:
Flowchart is for representing algorithms or processes, but not data.
1) "...how can i represent scanf("%s",circle[i].text); in flowchart." (your comment)
The graphical respresentation of it in flowchart will look like:
A flowchart representation: More detailed:
... ...
| |
____________|___________ _______________|_________________
/ \ / \
| enter some text | | scanf("%s",circle[i].text); |
\________________________/ \_________________________________/
| |
| |
... ...
2) As for your structure, you don't need its representation: the structure in the code is very easy to understand:
/* How can it be easier to understand? */
struct
{
char text[20];
float radius;
float area;
} circle[10];
Look at you structure and you'll be able to see it's "name" (struct circle) and variables that it contains (char text[20]; float radius; float area;). What can be easier to understand the structure?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With