Posts

Showing posts from October, 2024

C PROGRAMMING BASICS

  C Language :          Procedural Programming Language  - Type of Programming Language that uses step by step procedure to solve the problems. Usage of Void main  #include <stdio.h> void main() {     printf("Welcome to C Programming Language"); }   Usage of Int main #include <stdio.h> int main() {     printf("Welcome to C Programming Language");     return 0; } Data Types Program #include <stdio.h> int main() {     int a=100;     long int n=1002365988545;     float b=25.69;     char c='a';     double d=45.696544;     printf("%d\n",a);     printf("%ld\n",n);     printf("%.2f\n",b);     printf("%c\n",c);     printf("%.2lf\n",d);     return 0; } Printing the all datatypes in same line #include <stdio.h> int main() {     int mark1=100,mark2=500,mark3=800;     int...