Posts

Chapter 1 practice set source code

                Source code Do you remember that I have give you a practice set so now I will give you the answers of the questions and the prompts that will help for your future in the C programming. First I want to answer the conceptual based questions that I give you to see your concepts and foundation in basics.   Question no. 1: What are variables?       Variables are like the container and the box that are used to store the values. Question no. 2: What is the format specifier for integer?    The format specifier that is used to represent integers is %d. Question no. 3: Which format specifier is this: %f.      This format specifier is for float. Question no. 4: What are comments? Give atleast one  use of them. Comments are the stemtement that are created for user that are ignored by the compiler. The use of comments is that it is useful for the person who is learning the C language or to ment...

Chapter 1 practice set

                            Practice set Hope you have learned the previous session of Chapter 1. Now I will give you questions so you have to solve them some are find the errors questions and some are have to write the programs. Some of them are the conceptual based questions that will help u to revese your concepts. Now let's start.                                 Conceptual based questions Question no. 1: What are variables? Question no. 2: What is the format specifier for integer? Question no. 3: Which format specifier is this: %f. Question no. 4: What are comments? Give any one use of them. Question no. 5: What are the two main types of comments. Question no. 6: What is the syntax of taking input from the user?                               A.I skills question...

Chapter 1 source code

Image
  Source code for the chapter 1 Program1: Main.c // Our first program #include <stdio.h> int main (){     printf ( "Hello World \n " );     return 0 ; }  Program2: Variables.c #include <stdio.h> int main (){     int a = 34 ;     int b = 2 ;     printf ( "The sum is %d\n " , a + b);     return 0 ; } Program3: Data types.c #include <stdio.h> int main (){     int i = 5 ; // It stores an integer.     float f = 4.5 ; // It stores a decimal number.     char c = 'A' ; // It stores character.     printf ( " %d " , i); // format specifier for Integer     printf ( " %f " , f); // Format specifier for float     printf ( " %c " , c); // format specifier for charachter     return 0 ; } Program4: Challenge.c #include <stdio.h> int main (){     int a = 2 ;     int b = 5 ;     prin...

C language chapter 1

Image
  PRO C LANGUAGE COURSE Introduction to the course This is a high-level C language course where I will teach you everything in the c language. It is divided into the Several chapters and after all chapter’s concept, we will do some practice and questions and quizzes during the lesson. After you will learn the full language we will do 5 projects so be ready to start your journey. What is programming? You are in start in programming so you will have to understand that what is programming? Let’s answer the question. Example you want to talk with your friend, or you must give him order so you will tell him in your language. If you must talk with the computer so you cannot communicate directly with the computer, so you must tell him with his own language computer language. For this reason, we must learn some specific languages. For example, Python, C, C++, C#, and Java. The...