Basics of C
By: Abinaya in C Tutorials on 2007-09-20
C is a general-purpose, high-level programming language that was developed in the early 1970s by Dennis Ritchie at Bell Labs. C is a powerful programming language that is used to create a wide range of software, from operating systems and compilers to video games and embedded systems.
Here are some basic concepts of C programming:
-
Variables: C programming is based on variables. A variable is a storage location in memory that has a name and a value. You can store different types of data in variables such as integers, floating-point numbers, characters, and arrays.
-
Data Types: C has several built-in data types such as integer, character, floating-point, double floating-point, and void. You can also create your own data types using structures and unions.
-
Operators: C has several types of operators, including arithmetic, relational, logical, bitwise, and assignment operators. These operators are used to perform various mathematical and logical operations in your programs.
-
Control Structures: C provides several control structures such as if-else statements, loops (for, while, and do-while), switch-case statements, and goto statements. These structures help you to control the flow of your program.
-
Functions: C is a procedural programming language, which means that programs are built around procedures or functions. A function is a block of code that performs a specific task. C has built-in functions, and you can also create your own functions.
-
Pointers: Pointers are variables that store memory addresses. You can use pointers to manipulate data directly in memory, which can be useful for optimizing your code.
Overall, C is a powerful and versatile programming language that is still widely used today. However, it is also a low-level language that can be more difficult to learn than some other languages, and it requires more attention to memory management and other details.
Add Comment
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Most Viewed Articles (in C ) |
Latest Articles (in C) |
- Data Science
- Android
- React Native
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Sum of the elements of an array in C
Printing a simple histogram in C
Find square and square root for a given number in C
Simple arithmetic calculations in C
Passing double value to a function in C
Passing pointer to a function in C
Infix to Prefix And Postfix in C
while, do while and for loops in C
Comments