Programming Language

C  PROGRAMMING LANGUAGE

C is a programming language. is a general-purpose programming language. C is the motherboard to C++ Language and in addition its a construction programming language C Language was designed to create database, Language interpreter, Phrase processor and Working System. Benefits of C programming Language. C has the power to jot down the code for a pc system which could be very straightforward. C is a versatile programming language. C is a conveyable  C is a compiled programming language. C is a machine impartial programming language. C is a natively compiled programming language. C is a dynamically typed programming language. C is a statically typed programming language. Disadvantages of C Language C doesn’t present Object Oriented Programming (OOP) ideas.There aren’t any ideas of Namespace in C.C doesn’t present Constructor and Destructor Constructor and Destructor-Constructors are particular class  of a perform  which initializes an object whereas Destructors are used to destruct object in a category.     .   Troublesome to debug error     . Doesn’t present knowledge safety Easy instance of C program #embrace   int major() {  printf(“Hi there worldn”);  return 0;  }   That is an enter command. instance of output command is:  write a program that immediate the consumer to enter two quantity then output the product of two quantity?      SOL:  #embrace   int major() { int  num1 ,num2 ,outcome; printf(“enter num1 and num2”);  scanf(“(“%dpercentd”,&num1,&num2); outcome: num1*num2; printf((“result’s:%d “,num1*num2); return 0;  }  Knowledge Varieties in C Datatype is a variable that may retailer integer, characters and floating Kinds of Datatype in C Language Integers-Integer kind is a quantity, which may retailer entire quantity and fractional numbers. Characters-Character kind is an alphabetic character that may retailer any type of characters. Floating-Floating kind is a quantity with out a fastened most and minimal worth. C language knowledge varieties Integers-Integer Characters-String Floating-Floating C language Knowledge Varieties Integers-Integers Characters-String Floating-Floating C language variables Variables are locations the place you possibly can retailer values. Variable is a reminiscence location for storing knowledge Variables are declared through the use of the “VAR” key phrase and adopted by a sort, a reputation, and a listing of initializers. Variables may be of kind integer, character, or floating level. Guidelines for outlining variables Variable- Variable declared in C language is an object. Variable may be declared with its kind solely. Variable- Variable may be international, native or static. Native- Native variable is native to the perform or block. World- Variable is international to the file. Static- Knowledge is saved in reminiscence as soon as and it isn’t obtainable in capabilities. Initializers- Initializer is a listing of expression which can be used to assign a price to a variable. Initializer- Initializer is a listing of expressions which can be used to assign a price to a variable. Expressions- Expression is a mathematical, logical, and relational operations. Expressions- Expression is a mathematical, logical, and relational operations. INITIALIZERS FOR VARIABLES There are three sorts of initializers to initialize the variables- Initializer- Initializer is a listing of expressions which can be used to assign a price to a variable. Distinction between native variable and international variable A neighborhood Variable is said inside a perform whereas international variable is said outdoors the principle perform.  Variable Declaration Native Variable eg. int major() { int  num1 ,num2 ,outcome;char X, Y; World Variable eg. int worth=20;void function1(){  

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button