Skip to main content

Shorts notes c language

 C is a general-purpose programming language developed in 1972 by Dennis Ritchie at  Bell Labs.

C is a compiled language, meaning that the code is converted into machine- readable format before execution.

C is low-level language, meaning that it provides a deal of control over hardware resources and memory allocation.

C is often used for system programming, embedded systems, and other application where performance and control are critical.

C is a procedural language, meaning that it follows a step-by-step approach to solving problems.

C supports a wide range of data types, including integers, floating-point numbers, characters, and arrays.

C provides a rich set of operators for performing mathematical and logical operations.

C includes standard libraries for performing common tasks, such as input/output operations and string manipulation.

C code is typically written in a text editor and complied using a C complier, such as GCC or clang.

C code can be run on a wide range of platforms, including Windows, Linux, and macOS.


C is a powerful general-purpose programming language that is widely used for developing various types of software applications. Here are some short notes on C:


Syntax: C programming language has a simple syntax that is easy to learn and understand.


Variables: In C, variables are used to store data values. Each variable has a specific data type, such as int, float, char, etc.


Data Types: C supports a wide range of data types, including integers, floating-point numbers, characters, and strings.


Operators: C provides various operators such as arithmetic, relational, logical, bitwise, etc. for performing operations on variables.


Control Structures: C provides various control structures such as if-else, switch-case, loops, etc. for controlling the flow of execution of a program.


Functions: In C, functions are used to break the program into smaller modules, making it easier to understand and debug.


Pointers: C provides pointers, which are variables that store memory addresses. Pointers are useful for dynamic memory allocation and accessing array elements.


Arrays: C supports arrays, which are collections of elements of the same data type. Arrays are useful for storing large amounts of data.


Structures: C supports structures, which are user-defined data types that can hold a collection of variables of different data types.


File Handling: C provides file handling functions, which allow programs to read and write data to files on the disk.


Overall, C is a powerful and flexible programming language that is widely used for developing various types of software applications, including system software, application software, and embedded software.


Comments

Popular posts from this blog

Scope of Financial Accounting

 Financial accounting is a branch of accounting that deals with the recording, summarizing, and reporting of financial transactions of an organization. Its scope includes: 1. Reporting performance and position: Reporting the performance of an organization  as well as the state of the organization are the primary purposes. This can be seen through alternate names for the incomes statement and balance that were mooted for them namely the statement of financial performance and the statement of financial position. 2. Reporting to shareholders: Public traded companies accounts are relied on by more than direct shareholders. As a result of being publicly sold the scope of financial accounting information provided by these companies must also include the needs of potential investors to enable them to determine if they desire to invest in these companies. his he why publicly traded companies are required to publish their financial statement and make them the publicly available. 3. Rep...

Types of Programming Languages

There  are basically two types of computer programming languages given below: 1. Low level language 2. High level language 1. Low Level Languages The programming languages that are very close to machine code (0s and 1s) are called low-level programming languages. The program instructions written in these languages are in binary form. The examples of low-level languages are: • Machine Language • Assembly Language I . Machine Language The instructions in binary form, which can be directly understood by the computer (CPU) without translating them, is called a machine language or machine code. Machine language is also known as first generation of programming language. Machine language is the fundamental language of the computer and the program instruction in this language is in the binary form (that is 0's and 1's). • This language is different for different computers. • It is not easy to learn the machine language. Advantage of Machine Language The only advantage of machine langua...

Course Name: Computer Graphics & Multimedia Application (BCA-401)

  Course Name: Computer Graphics & Multimedia Application (BCA-401) UNIT-I: Introduction Which of the following is an advantage of interactive graphics? a) Increased computational complexity b) Static visualization c) Enhanced user interaction d) Limited user feedback Answer: c) Enhanced user interaction Which of these is a representative use of computer graphics? a) Database management b) Spreadsheet calculations c) CAD (Computer-Aided Design) d) Text editing Answer: c) CAD (Computer-Aided Design) Computer graphics applications can be classified into which of the following? a) Scientific and business applications b) Art and entertainment applications c) Both a and b d) Neither a nor b Answer: c) Both a and b The development of hardware and software for computer graphics involves: a) Only hardware advancements b) Only software advancements c) Both hardware and software advancements d) None of the above Answer: c) Both hardware and software advancements What is the first step in...