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

Most importance question with Answers in C++

1. Write the shorts notes on Garbage collection. Ans.  Garbage collection in C++ isn't native to the language; it relies on manual memory management using constructs like new and delete . However, some third-party libraries or smart pointers like std::shared_ptr and std::unique_ptr offer automated memory management. C++11 introduced smart pointers, reducing manual memory handling but lacking the automatic garbage collection found in languages like Java or Python. 2. What is multiple heritance? Ans. Multiple inheritance in C++ enables a class to inherit attributes and behaviors from more than one base class. It allows a derived class to access features from multiple parent classes, fostering complex class hierarchies but potentially causing issues like the diamond problem due to ambiguous member access. 3. What do you mean by operator overloading ? Ans. Operator overloading in C++ allows defining custom behaviors for operators like +, -, *, etc., for user-defined types. It enable

Course Name: Operating System[Objective QUESTION]

  Course Code: BCA-402 Course Name: Operating System UNIT-I: Introduction What is an operating system? a) A hardware component b) A system software that manages hardware and software resources c) An application software d) A programming language Answer: b) A system software that manages hardware and software resources Which of the following is a characteristic of simple batch systems? a) Real-time processing b) Interactive processing c) Jobs are processed in batches without user interaction d) Distributed processing Answer: c) Jobs are processed in batches without user interaction Multi-programmed batch systems are designed to: a) Handle one task at a time b) Improve CPU utilization by running multiple programs simultaneously c) Execute programs in a sequential manner d) Only manage system files Answer: b) Improve CPU utilization by running multiple programs simultaneously Time-sharing systems are characterized by: a) Batch processing b) Real-time processing c) Allowing multiple users