Why do we use # in C programming?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

solve Physics and math question in shortcut way

In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow you to include header files, define macros, and perform other operations that affect how the code...
read more
In the C programming language, # is usedfor preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow you to include header files, define macros, and perform other operations that affect how the code is compiled. read less
Comments

I am online Quran teacher 7 years

In C programming, the '#' symbol is used for preprocessor directives. These directives provide instructions to the preprocessor, which is a tool that processes the source code before actual compilation. For example, #include is used to include header files, and #define is used for macro definitions....
read more
In C programming, the '#' symbol is used for preprocessor directives. These directives provide instructions to the preprocessor, which is a tool that processes the source code before actual compilation. For example, #include is used to include header files, and #define is used for macro definitions. The '#' is a signal to the preprocessor to perform specific actions based on the directive. read less
Comments

IT Corporate Trainer with 9 years of experience in Edu tech

In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow you to include header files, define macros, and perform other operations that affect how the code...
read more
In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow you to include header files, define macros, and perform other operations that affect how the code is compiled. read less
Comments

C language Faculty (online Classes )

In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow you to include header files, define macros, and perform other operations that affect how the code...
read more
In the C programming language, # is usedfor preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow you to include header files, define macros, and perform other operations that affect how the code is compiled read less
Comments

C, Python FullStack, Java FullStack Coding Instructor

n C programming, the # symbol is used to indicate preprocessor directives. These directives provide instructions to the C preprocessor, performing tasks such as including header files, defining macros, and enabling conditional compilation.
Comments

View 3 more Answers

Related Questions

What is the meaning of \n and \t in C language?
(New line) -- We use it to shift the cursor control to the new line. \t (Horizontal tab) -- We use it to shift the cursor to a couple of spaces to the right in the same line.
Munawar
0 0
5
hi sir c progarm codeing how to write sir........
take any C book then u can learn more...
Suryateja
Who created C?
C programming language was created by Dennis Ritchie at Bell Labs in the early 1970s. Along with Ken Thompson, Ritchie developed C as an evolution of the B programming language, aiming to provide a more...
Srinivasan
0 0
8
Can a file other than a .h file be included with #include?
yes .h -- is just for our understanding that its header file, you are free to put any filename and extention.
Pankaj
0 0
7
C machine independent Programming Language? C is portable . Means What?
It can work on various hardware configuration . C doesnt require mandatory or same set of hardware to run program. A program can written on one comp. And can run on other comp.(machine)
Shiva

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C Programming basics
C PROGRAMMING BASICS 10 Hours Introduction to ‘ C’ programming –fundamentals – structure of a ‘C’...
O

Om K.

0 0
0

Facts about C language
C programming language was developed in 1972 by Dennis Ritchie at AT&T Bell Labs. It was developed to overcome the problems of languages such as B, BPCL. It was developed to write the Unix operating...

Program to swap the value of two variables without using third variable(simplest way)...
int main() { int a=10,b=20; printf("values of a before swap ="%d,a); printf("values of b before swap ="%d,b); a=a+b; b=a-b; a=a-b; printf("******************"); printf("values of a after swap...

C++ Program-Working with constant using #define preprocessor
//Header Files #include#include // using #define preprocessor for defining a constant#define len 10#define br 5#define rad 3#define NEWLINE '\n' //Main function void main(){ int area_r; float area_c; //Function...

Functions In C Programming
A C-language program is nothing but collection of Function, these are the building blocks of a ‘C’ program. Generally, a function mans a task. “Function is a...

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you