Tuesday, September 26, 2023

Only points of C

 1)Basic of c programming

2)history of c programming

       1960 to C99 

3)Why use  c? 

4)structure of c programming 

         A)Documents section 

         B)Link  section 

         C)definition 

         D)Global declaration section 

         E)Function definition section 

         F) main()/sub programming 

5)Menu of Troub c (10)

     File, Edit, search, run, compile, debug, project, option, 

 Window,  help 

6)Printf(), Scanf(), 

7)String Function :-%d, %c, %s, %n..etc

8)Features of C:-

         Simple, Portable, Mid-Level, Structure, Rich library, Extensible, Recursion, pointers, Faster, Memory Mgt. 


----------------------------------------------------------


Unit 1.Basic of programming & Ubuntu OS

 ---------------------------------------------------------

1)Problem Definition 

2)Problems Solving 

     A)Understanding 

     B)Problems Analysis 

     C)Developing Solutions

     E)Coding and Implementation

3)Problem Analysis :-

   A)Specifying the Objective

   B)Specifying the Output 

   C)Specifying Input Requirements

   D)Specifying process        Requirements

   E)Evaluating the Feasibility

   F)Documents 


4)Algorithm in C:

        "A algorithm is process of Step-by-Step instruction for the solving a problems"

  Eg.--> Step 1:-Start ----etc 


   Features of Algorithm :-

  A)Inputs

  B)Outputs 

  C )Clarity

  D) Finiteness

  E)Validity

  F)Generality


5)Flowchart :-

                  "The Flowchart is the most widely used graphical representation of an algorithm and procedural design workflows"


       A)Terminal,  B)Process 

      C)Flow linn's  D)Decision 

      E) Process     F)Connectors 

     G)I/O   ----/etc



6)Debugging :-

     "The process of identifying and removing errors from computer hardware or software"

"software debugging"


   A)What is Debugging

   B)Why do we need debugging?

   C)Steps involved in debugging

   D)Debugging strategies

   E)Tools required to debug


7)Types of errors :-

      "Errors are the problems or the faults that occur in the program"

      A)Syntax error

      B)Run-time error

      C)Linker error

      D)Logical error

     E)Semantic error

============================

1)Introduction to Linux

Linux is an open-source Unix-like operating system-based family on the Linux kernel, and the OS kernel was first published on 17 September 1991 by Linus Torvalds. Typically, Linux is packaged as the Linux distribution, which contains the supporting libraries and system software and kernel, several of which are offered by the GNU Project. Several Linux distributions use the term "Linux" in the title, but the Free Software Foundation uses the "GNU/Linux" title to focus on the necessity of GNU software, causing a few controversies.


2)‘C’ programming 

language :-

       C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972.

        It is a very popular language, despite being old. The main reason for its popularity is because it is a fundamental language in the field of computer science.

       C is strongly associated with UNIX, as it was developed to write the UNIX operating system


3)Introduction to GCC Compiler:-


In Linux, the GCC stands for GNU Compiler Collection. It is a compiler system for the various programming languages. It is mainly used to compile the C and C++ programs. It takes the name of the source program as a necessary argument; rest arguments are optional such as debugging, warning, object file, and linking libraries.


GCC is a core component of the GNU toolchain. Various open-source projects are compiled using the GCC, such as Linux kernel and GNU tools.


©©©QUESTION ©©©

A)Explain the GCC compiler  in details with components.

==>a)Basic of GCC compiler 

     b)Installation of MinGW process.

    c)How to Set Path 

    d)Simple C program 

    e)Compil and Run process.

     f)Components of GCC :-

             1)GNU Compiler Collection 

             2)GNU Make 

             3)GNU   Binutils 

            4)GNU   Dubggger 

            5) GNU Autotools 

      ***************


    

4)Data Types:-

       Primary Data type:-

         1)int 2)char 3)Float 4)Double 

     Secondary Data types:-

        1)Structure 2)pointers 3)Array 

         4)Function 


5)Variable Declaration:-

      A)Introduction 

      B)Definition 

      C)Rules 

      D)Syntax 

      E)Example 

   .. F)Types of variable:-

             ->Local, Global, Static, Automatic, External 

6)Input/output statement :-

          Input ==>Scanf();

         Output ==>Printf();

7)Bulit in standard  library :-

     A)Standard Library Function

             A.1)Input/output

              A.2)String manipulation functions

              A.3)Mathematical functions

             A.4)Time functions

     B) Users defined Library 

        B.1) Write the function code: 

        B.2) Create a header file:

        B.3) Compile the code:

         B.4) Create the library

        B.5)Link the library: 

8)Simple C program 

 9)Vim (Visual  Editor) 

         Types :-a) Command  mode

                        b)Insert Mode

10)writing the First ‘c’ Program:-

        A)write a simple program in c.

        B)Explain the tools details and compile and run.

11)Compilation and Execution of C Program:-

      A)Preprocessor 

       B)compiler 

      C)Assembler 

       D)Linkers 

12Format Specifies:->

         -->FS used for Input & Output operations on a program. 

   Eg.%d, %i, %x, %S, %C....etc

 Escape Sequence:->

       -->ES used for only Output operations on a program. 

   Eg.\n, \f......etc

---------------------------------------------------------------

1)Branching  Statement :-  

          A)if.....Statment :-

               1)Introduction 

               2)Syntax 

               3)Declaration 

              4)Program 

               5)Output 

               6)Algorithm 

                7)Flowchart 

          B)if......else Statement 

               1)Introduction 

               2)Syntax 

               3)Declaration 

              4)Program 

               5)Output 

               6)Algorithm 

               7)Flowcha

         

             C)Nested.....if  statement :-

              1)Introduction 

               2)Syntax 

               3)Declaration 

              4)Program 

               5)Output 

               6)Algorithm 

                7)Flowchart 

          ✍️📝📕💻📑📖

       


No comments:

Post a Comment