coder_s

ASCII Values in C

ASCII values in C: ASCII stands for American Standard Code for Information Interchange. This is a character encoding scheme used in electronics communication. Each ASCII code requires 7 bits in memory. The ASCII table is given bellow : Example : C C #include<stdio.h> int main() { char a; printf(“Enter a character : “); scanf(“%c”,&ch); printf(“n …

ASCII Values in C Read More »

scanf() Statement

“scanf()” statement: “scanf()” is a C library function from the header file “stdio.h”(stdio – standard input output), which allows the programmer to accept input from standard input devices(Keyboard). The taken input is stored in a variable. Example: C C #include<stdio.h> int main() { int a; printf(“Enter the value of a:”); scanf(“%d”,&a);// accepts the value of …

scanf() Statement Read More »

printf() Statement

“printf()” statement : “printf()” is a C library function from the header file “stdio.h”(stdio – standard input output), which sends the console output to stdout. Example : C C #include<stdio.h> int main() { printf(“Hello!”); // this printf function will print “Hello!” as the output. return 0; } Output Output Hello! “printf()” returns the number of …

printf() Statement Read More »

Page 1 of 2
1 2