Skip to content

Instantly share code, notes, and snippets.

@ForceGT
Created May 2, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ForceGT/1dd93fa92081cc48f50f216059b12d59 to your computer and use it in GitHub Desktop.
Save ForceGT/1dd93fa92081cc48f50f216059b12d59 to your computer and use it in GitHub Desktop.
C Basics
Basic Topics To Be Covered:
Preprocessor Directives
Functions,Variables,Tokens,Semicolons,Comments,Identifiers
Basic Data Types in C:
Basic: int,float,long,double,char,void
Enumerations
Derived: Array, Structures, Pointers, Unions
Defining Constants : const , #define
C storage classes : auto,register,static,extern
Operators : Arithmetic,Relational,Logical,Bitwise,Assignment
Decision Making : if , if else if, nested ifs , switch case, Ternary ?
Loops: for,while,do while
Loop control : continue,break
*******Problems to be solved************
1.WAP to detect greatest of three numbers
2.WAP to Print a Floyd's Triangle
Rows will be input by user
Floyd’s triangle is a triangle with first natural numbers.
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
with C
3.WAP to Reverse the Digits of a Number Entered by user,Armstrong Number,Swapping Digits of a number
4.WAP to find roots of a quadratic equation, Simple Interest
5.Print Reverse of a String / Check Palindrome
6.Find the two top maximum numbers in an array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment