Linux important commands illustrations examples


Advertisements

 
    

Article contents

File System Commands

Process Management Commands

File Permission Commands

Searching commands

System Info Commands

File Compression Commands

Networking Commands

Process Management

Why this error?
Program having error at line: 4 => expected ‘;’ before ‘}’ token

C:\MinGW\bin>gcc C:\programs\Listing1.c
C:\MinGW\bin>a.exe
Enter your name:ram
Your name:ram
C:\MinGW\bin>a.exe
Enter your name:ramkumar
Your name:ramku
C:\MinGW\bin>        
C:\MinGW\bin>a.exe
Enter your name:
Your name:
C:\MinGW\bin> 
    This is a c programming syntax error that occurs when you missed a semi column at the end of a line.

Error resolution?
    Put a semi column at the end of line 3 and recompile the program. Program will compile without this error.


Want to contribute or ask a new article? Write and upload your article information .

Share

Articles


Software Tools

More Articles Categories

Technical articles

Prepare for software jobs


Test your skills