C programming session 01

Self employed consultant
30 de Aug de 2011
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
C programming session 01
1 de 53

Mais conteúdo relacionado

Mais procurados

Strings-Computer programmingStrings-Computer programming
Strings-Computer programmingnmahi96
C programming language tutorial C programming language tutorial
C programming language tutorial javaTpoint s
Structure of c_program_to_input_outputStructure of c_program_to_input_output
Structure of c_program_to_input_outputAnil Dutt
Computer programming(CP)Computer programming(CP)
Computer programming(CP)nmahi96
C programming & data structure   [character strings & string functions]C programming & data structure   [character strings & string functions]
C programming & data structure [character strings & string functions]MomenMostafa
C programming_MSBTE_Diploma_Pranoti DokeC programming_MSBTE_Diploma_Pranoti Doke
C programming_MSBTE_Diploma_Pranoti DokePranoti Doke

Destaque

C programming session 03C programming session 03
C programming session 03Dushmanta Nath
Dacj 1-2 cDacj 1-2 c
Dacj 1-2 cNiit Care
Session No1 Session No1
Session No1 Saif Ullah Dar
C programming session 07C programming session 07
C programming session 07Dushmanta Nath
Session no 4Session no 4
Session no 4Saif Ullah Dar
Session no 2Session no 2
Session no 2Saif Ullah Dar

Similar a C programming session 01

Introduction to C Unit 1Introduction to C Unit 1
Introduction to C Unit 1SURBHI SAROHA
C programming session 01C programming session 01
C programming session 01Vivek Singh
Introduction to cIntroduction to c
Introduction to camol_chavan
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.pptatulchaudhary821
Introduction to c programmingIntroduction to c programming
Introduction to c programmingABHISHEK fulwadhwa
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointJavaTpoint.Com

Mais de Dushmanta Nath

Global Warming ProjectGlobal Warming Project
Global Warming ProjectDushmanta Nath
DBMS Practical FileDBMS Practical File
DBMS Practical FileDushmanta Nath
Manufacturing Practice (MP) Training ProjectManufacturing Practice (MP) Training Project
Manufacturing Practice (MP) Training ProjectDushmanta Nath
BSNL Training ProjectBSNL Training Project
BSNL Training ProjectDushmanta Nath
IT- 328 Web Administration (Practicals)IT- 328 Web Administration (Practicals)
IT- 328 Web Administration (Practicals)Dushmanta Nath
IT-314 MIS (Practicals)IT-314 MIS (Practicals)
IT-314 MIS (Practicals)Dushmanta Nath

Último

Product Research Presentation-Maidy Veloso.pptxProduct Research Presentation-Maidy Veloso.pptx
Product Research Presentation-Maidy Veloso.pptxMaidyVeloso
roomos_webinar_280923_v2.pptxroomos_webinar_280923_v2.pptx
roomos_webinar_280923_v2.pptxThousandEyes
GDSC ZHCET Google Study Jams 23.pdfGDSC ZHCET Google Study Jams 23.pdf
GDSC ZHCET Google Study Jams 23.pdfAbhishekSingh313342
"The Intersection of architecture and implementation", Mark Richards"The Intersection of architecture and implementation", Mark Richards
"The Intersection of architecture and implementation", Mark RichardsFwdays
Mule Meetup Calgary- API Governance & Conformance.pdfMule Meetup Calgary- API Governance & Conformance.pdf
Mule Meetup Calgary- API Governance & Conformance.pdfNithaJoseph4
EuroBSDCon 2023 - (auto)Installing BSD Systems - Cases using pfSense, TrueNAS...EuroBSDCon 2023 - (auto)Installing BSD Systems - Cases using pfSense, TrueNAS...
EuroBSDCon 2023 - (auto)Installing BSD Systems - Cases using pfSense, TrueNAS...Vinícius Zavam

Último(20)

C programming session 01

Notas do Editor

  1. Begin the session by explaining the objectives of the session.
  2. Discuss the history of the C language.
  3. The storage requirements for different data types are machine-dependent. There is a subtle difference between declaring and defining variables. The statement: char a; Is used to declare a variable a. Here, only the attributes of the variable are specified, not the contents. In contrast, the statement: char a = ‘A’ ; is used to define the contents of the variable a.
  4. Derived data types modify the data according to the specific requirements. For example, if you need to store a integer value above 32,767 or below -32,767, you can use long int instead of int . the derived data type long increases the range of the int data type.
  5. Use Slide 12 to test the student’s understanding on defining the variables.
  6. Use Slide 15 to test the student’s understanding on defining the variables.
  7. A C function is typically made up of blocks. A block is a set of C statements enclosed within braces. Variables are generally declared at the beginning of a function, but may also be declared at the beginning of a block. A C program is modular and structured. This allows for reusability of code.
  8. Use Slide 20 to test the student’s understanding on functions.
  9. Multiple-level functions are those functions where a function calls another function. Like in the slide, the main() function calls another function disp_msg() .
  10. Use Slide 25 to test the student’s understanding on functions.
  11. The getc() and getchar() functions are used to take a character from a stream. The getc() functions takes a stream as a parameter while the getchar() function does not take any parameter. Similarly, the putc() and putchar() function outputs a character to a stream. The putc() functions takes two parameters, the character to be output and the stream, while the putchar() function takes only one parameter i.e. the character to be output.
  12. Use Slide 31 to test the student’s understanding on character-based input-output functions.
  13. Use Slide 33 to test the student’s understanding on the getchar() and putchar() functions.
  14. The gets() function is used to get a string from stdin . It collects a string terminated by a new line character from the input stream. It takes a constant string as a parameter. The puts() function copies the null-terminated string, which is passed as a parameter, to the standard output stream.
  15. Use Slide 36 to test the student’s understanding on the gets() and puts() functions.
  16. Explain the need for conditional constructs and loop constructs by taking appropriate examples.
  17. Use Slide 41 to test the student’s understanding on the conditional constructs.
  18. Explain the limitations of the switch…case construct. Tell the students that the switch…case construct cannot work with float variable. Also, you cannot specify an expression in the switch…case construct.
  19. Use Slide 45 to test the student’s understanding on the conditional constructs.
  20. The condition associated with the while loop is checked before entering the loop. Hence, there is a possibility that the loop is not executed at all. In the other case, the condition is checked after executing the loop once and for every interaction thereafter.
  21. Use Slide 49 to test the student’s understanding on the loop constructs.
  22. Use Slides 51, 52, and 53 to summarize the session.