CERTIFICATE This is to certify that the course work entitled TITLE , submitted to the CMR University, Bangalore, in partial fulfilment of the requirements for the award of the degree of Bachelor of Technology in Computer Science and Engineering is a record of work done by Ms. PRIYANKA.S bearing university register number 22BBTCD047during the academic year 2023-24 at School of Engineering and Technology, CMR University, Bangalore under my supervision and guidance The Internship report has been approved as it satisfies the academic requirement in respect of internship work prescribed for the said degree Dr S Saravana Kumar Professor/CSE Signature of theSignature of the
CERTIFICATE
ACKNOWLEDGEMENT
DECLARATION I, PRIYANKA.S bearing USN 22BBTCD047student of Bachelor of Technology, Computer science and Engineering, CMR University, Bengaluru, hereby declare that the Course work entitled “ C Programming for beginners” submitted by me, for the award of the Bachelor’s degree inComputer science and engineering to CMR University is a record of bonafide work carried out independently by me under the supervision and guidance of Dr S Saravana Kumar, Professor , HOD/CSE Dept., CMR University I further declare that the work reported in this course work has not been submitted and will notbe submitted, either in part or in full, for the award of any other degree in this university or any other institute or University 4
Table of contents
Chapter 1
INTRODUCTION C programming is a powerful and widely-used programming language that has been in existence for several decades C is often praised for its low-level features, which allow direct memory manipulation and close interaction with hardware, making it suitable for system programming and embedded systems C programming serves as a foundation for learning other programming languages and understanding computer systems at a deeper level
1.1 PROBLEM STATEMENT
Library Catalog System
CHAPTER 2
LITERATURE SURVEY A literature survey for C programming would involve reviewing a range of sources that discuss various aspects of the C programming language, its history, applications, and best practices This book, published in 1978, is considered the definitive guide to C programming and provides an excellent starting point for understanding the language In summary, a literature survey for C programming would involve studying foundational texts like "The C Programming Language," exploring academic sources for in-depth knowledge, and delving into the history and evolution of C programming through articles and biographical information about its creators
Structure of a C Program
The Greeting Program
CHAPTER 3
3.1 TASKS PERFORMED Dept. of CSE, CMR University, Bangalore
3.2 Advantages
CHAPTER 4 IMPLEMENTATION
4.1 SOFTWARE REQUIREMENT Text Editor or Integrated Development Environment : You can write your C code in a simple text editor like Notepad or a more specialized code editor like Visual Studio Code, Sublime Text, or use an IDE like Eclipse, Code::Blocks, or Dev-C++ Operating System: C programming can be done on various operating systems, including Windows, Linux, macOS, and others Common libraries include the C Standard Library and platform-specific libraries
4.2 HARDWARE
Rules for Identifiers
Examples of Valid and Invalid Names
Data Types Dept. of CSE, CMR University, Bangalore
Character Types
Integer Types
Typical Integer Sizes and Values for Signed Integers
Floating-point Types
Type Summary
Variables
Variable Initialization Constants are data values that cannot be changed during the execution of a program Like variables, constants have a type In this section, we discuss Boolean, character, integer, real, complex, and string constants
Symbolic Names for Control Characters
Examples of Integer Constants
Examples of Real Constants
CONCLUSION The C programming language is a procedural and general-purpose language that provides low-level access to system memory A program written in C must be run through a C compiler to convert it into an executable that a computer can run C programming language was developed in 1972 by Dennis Ritchie at bell laboratories of AT&T , located in the U