Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6821547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:33:28+00:00 2026-05-26T21:33:28+00:00

Possible Duplicate: “No newline at end of file” compiler warning i am a Linux

  • 0

Possible Duplicate:
“No newline at end of file” compiler warning

i am a Linux user and use gcc at work But at home i have installed cygwin package and using its gcc on my windows machine.

when ever i make any .c file and run its shows following warning

Warning : No new line at end of file 

when i add extra new line at the end of that c file warning disappeared.
i haven’t faced such warning while working with gcc in Linux.

so

why i am getting this warning? what does it mean ?

Edit

Whats the need or whats the advantage of doing this ?

if it is part of c programming standard then why it doesnt give any error while working in linux ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:33:29+00:00Added an answer on May 26, 2026 at 9:33 pm

    The C language requires that every source file must end with a newline (from C99 5.1.1.2/1):

    A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character before any such splicing takes place.

    (C++ also had this requirement prior to C++11)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: “On file dialog cancel” event in JavaScript Is there a listener for
Possible Duplicate: Getting “Permission denied” page in the admin, while user has permission I've
Possible Duplicate: “Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given” error while
Possible Duplicate: replace all “foo” between () Hello, I tried to use regex to
Possible Duplicate: Equivalence of “With…End With” in c#? There was one feature of VB
Possible Duplicate: What is the “??” operator for? Please explain me what is use
Possible Duplicate: “NOT IN” clause in LINQ to Entities I work with the schema
Possible Duplicate: “while( !feof( file ) )” is always wrong If I write an
Possible Duplicate: “invalid use of incomplete type” error with partial template specialization Why is
Possible Duplicate: “Cannot use string offset as an array” error <?php $marks = 0;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.