Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flowchart representing Structure in C [closed]

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

like image 290
insanity Avatar asked Jan 25 '26 19:01

insanity


1 Answers

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?

like image 164
yulian Avatar answered Jan 27 '26 14:01

yulian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!