do
{
unknownoption=0;
scanf("%d", &options);
switch (options)
{
case 1 :
{
sumIntegers ();
Type: Posts; User: Yogindar Das
do
{
unknownoption=0;
scanf("%d", &options);
switch (options)
{
case 1 :
{
sumIntegers ();
Looking at the code looks like you want to rearrange the marks and not sure what you intended to do here. Also for sorting you can just use one loop instead 2 loops. You have just swapped the marks....
#define REPORTFORMAT "%2s %2s %8.2f %15.2f %17.2f %18.2f%15.2f%11.2f\n"
should be
#define REPORTFORMAT "%2s %8.2f %15.2f %17.2f %18.2f%15.2f%11.2f\n"
There is an extra %2s...
In addEntry() replace
*ptrC++ with (*ptrC)++; or *ptrC = *ptrC + 1;
-Yogi
My Blog — Blog by Yogindar