Author: ERP Consultors

Variables in C Language

Variables in C Language: (1) In C language when we develop or built logic, we need variables that store information like amount, string or character. For storing this type of information, the C language provides variables like int, float, and char.  (2) Sample C language code using all variables and their output, as shown: #include <stdio.h>#include …

scanf() Use in C Language

scanf() Use in C Language: (1) scanf() is used for entering input values.  (2) Sample C language code and its output, as shown: #include <stdio.h>#include <conio.h> int main(){int n;printf(“Enter the value: “);scanf(“%d”,&n);printf(“Entered value is: %d”, n);getch();return 0;} (3) After that go to the “Build” menu and select the “Build” option for publishing the code as shown. (4) …

Use printf() in C Language

Use printf() in C Language: (1) printf() is used for printing output value.  (2) Sample C language code and its output, as shown: #include <stdio.h>#include <conio.h>int main(){printf(“My First C Programme”);getch();return 0;} (3) After that go to the “Build” menu and select the “Build” option for publishing the code as shown. (4) After building the code, press …

C Language Syntax

C Language Syntax: (1) C Language is designed by “Dennis Ritchie”. (2) C Language is a procedural programming language. (3) C Language is designed to be compiled to provide low access to memory. (4) For learning the C language, first install the editor and compiler. For this, refer to the blog “Install Code Blocks for C …

Use of SUBSTRING Function in SQL

Use of SUBSTRING Function in SQL: (1) “SUBSTRING” function is used to extract characters from the string with defined length and position. (2) Let’s take an example to extract the first two characters from Vendor Name as shown. (3) Select the database in the SQL server and click on the “New Query” button as shown. (4) …