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

  • Home
  • SEARCH
  • 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 6714421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:29:39+00:00 2026-05-26T08:29:39+00:00

From my previous knowledge in learning C , I know that preprocessor directive like

  • 0

From my previous knowledge in learning C, I know that preprocessor directive like #include , #define is ain’t a statement that’s why as the name implies , it is process before the program is compiled , therefore there’s no need for us to append a ; at the end of it.

In C++, it introduces me a new directive that is using , but why this directive append a semicolon? I thought it’s just like the previous directive I learn where it’s not a statement?

  • 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-26T08:29:40+00:00Added an answer on May 26, 2026 at 8:29 am

    using is not a preprocessor directive. It is seen and analyzed by the compiler proper.

    The fact that you often don’t put a ; at the end of #define macros is because they are processed as “simple” text replacement by the preprocessor, e.g:

    #define SOMETHING "abcd";
    
    ...
       if (strcmp(thing, SOMETHING) == 0) { ... }
    ...
    

    would be a compiler error since the compiler would see:

       if (strcmp(thing, "abcd";) == 0) { ... }
                           //  ^ invalid here
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From previous post, I learnt that for there are two ways, at least, to
From previous experience I had been under the impression that it's perfectly legal (though
Given <field name=frame.time_delta_displayed showname=Time delta from previous displayed frame: 0.000008000 seconds size=0 pos=0 show=0.000008000/>
From a previous question I have seen that the CLR has workstation and server
From a previous question , I learn that Linq to SQL is not able
Continuing from my previous question , is there a comprehensive document that lists all
from previous help I am using something like this: (function (global) { // your
In bash, I know of 3 args from previous command shortcuts. They are: !^
Note: This question has broadened in scope from previous revisions. I have tried to
From my previous questions about gettext, one of the biggest benefits of using PHP's

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.