PLEASE HELP ME RUN THIS C PROGRAM IT KEEPS ON SAYING |16|error: expected identifier or '(' before '{' token| #include #include #include int ch; void Nestedlooping(); void Recursion(); void Array(); void FileHandling(); void Exit(); void Array(); {     char string[20];     int n;     int count=0;         printf("Enter the no of characters present in an array \n ");         scanf("%d", &n);         printf(" Enter the string of %d characters \n" , n);         scanf("%s", string);         while (count < n)         {             printf(" %c = %d\n", string[count], string[count] );             ++ count ;         }         char ars;         printf("Press y to continue and n to go back to menu?(Y/N): ");         scanf("%s",&ars);         if(ars=='Y')         {         Array();         }         else         {             main();         }         return; } void main() {     while (1);     printf("\n\n\t\t\t   oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\n");     printf("\n\n\t\t\t   oo        \t\t   ALLEAH CPE112 Final Exam Menu Programs          oo");     printf("\n\n\t\t\t   oo        \t\t    \n\nPress (1) for Nested Looping               oo");     printf("\n\n\t\t\t   oo        \t\t     \nPress (2) for Recursion                     oo");     printf("\n\n\t\t\t   oo        \t\t     \nPress (3) for Array                         oo");     printf("\n\n\t\t\t   oo        \t\t     \nPress (4) for File Handling                 oo");     printf("\n\n\t\t\t   oo        \t\t     \nPress (5) to Exit                           oo\n");     printf("\n\n\t\t\t   oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\n");     printf("\n\n\n-----------------------------------------------------------------------------------------------------------------------\n");                 printf("\n\n\n\n\n\t\t\t\t    Please input your chosen program:        \n\n\t\t\t\t\t\t\t");                 scanf("%d", &ch);     switch (ch)                 {                     case 1:                             Nestedlooping();                         break;                     case 2:                             Recursion();                         break;                     case 3:                             Array();                         break;                     case 4:                             FileHandling();                         break;                     case 5:                             Exit();                         break;                     default:                         printf("\n\t\t\tInvalid Option, Please Enter Right Option !\n");                 }                 }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

PLEASE HELP ME RUN THIS C PROGRAM IT KEEPS ON SAYING |16|error: expected identifier or '(' before '{' token|

#include <stdio.h>
#include <conio.h>
#include <stdlib.h>


int ch;

void Nestedlooping();
void Recursion();
void Array();
void FileHandling();
void Exit();


void Array();
{
    char string[20];
    int n;
    int count=0;

        printf("Enter the no of characters present in an array \n ");
        scanf("%d", &n);

        printf(" Enter the string of %d characters \n" , n);
        scanf("%s", string);

        while (count < n)
        {
            printf(" %c = %d\n", string[count], string[count] );
            ++ count ;
        }
        char ars;

        printf("Press y to continue and n to go back to menu?(Y/N): ");
        scanf("%s",&ars);

        if(ars=='Y')
        {
        Array();
        }
        else
        {
            main();
        }
        return;
}


void main()
{
    while (1);

    printf("\n\n\t\t\t   oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\n");
    printf("\n\n\t\t\t   oo        \t\t   ALLEAH CPE112 Final Exam Menu Programs          oo");
    printf("\n\n\t\t\t   oo        \t\t    \n\nPress (1) for Nested Looping               oo");
    printf("\n\n\t\t\t   oo        \t\t     \nPress (2) for Recursion                     oo");
    printf("\n\n\t\t\t   oo        \t\t     \nPress (3) for Array                         oo");
    printf("\n\n\t\t\t   oo        \t\t     \nPress (4) for File Handling                 oo");
    printf("\n\n\t\t\t   oo        \t\t     \nPress (5) to Exit                           oo\n");
    printf("\n\n\t\t\t   oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\n");


    printf("\n\n\n-----------------------------------------------------------------------------------------------------------------------\n");
                printf("\n\n\n\n\n\t\t\t\t    Please input your chosen program:        \n\n\t\t\t\t\t\t\t");
                scanf("%d", &ch);

    switch (ch)
                {
                    case 1:
                            Nestedlooping();

                        break;


                    case 2:
                            Recursion();

                        break;


                    case 3:
                            Array();

                        break;

                    case 4:
                            FileHandling();

                        break;

                    case 5:
                            Exit();

                        break;

                    default:
                        printf("\n\t\t\tInvalid Option, Please Enter Right Option !\n");

                }
                }

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education