C programming language is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Software Development Domain. I will list down some of the key advantages of learning C Programming:
Easy to learn
Structured language
It produces efficient programs
It can handle low-level activities
It can be compiled on a variety of computer platforms
C Programing
C is a programming language which develop by by Dennis Ritchie at Bell Laboratories in the early 1970s
06/05/2020
//Introducing Guess My Number (GAME)
// Guess My Number
// The classic number guessing game
int main()
{
int secretNumber = rand() % 100 + 1; // random number between 1 and 100
int tries = 0;
int guess;
printf("\tWelcome to Guess My Number\n\n");
do
{
printf("Enter a guess: ");
scanf("%d", &guess);
++tries;
if (guess > secretNumber)
{
printf("Too high!\n\n");
}
else if (guess < secretNumber)
{
printf("Too low!\n\n");
}
else
{
printf("\nThat's it! You got it in %d guesses!\n", tries);
}
} while (guess != secretNumber);
return 0;
}
Flyod Triangle
main() {
int i, j, num=1;
for (i=1; i
ArmStrong
main()
{
int number, n, num, check=0, remainder, digit=0;
printf(" \n Enter the number for check ArmStrong :: ");
scanf("%d",&number);
num = number;
n = number; // for last checking the number
while (num > 0) {
remainder = num % 10;
num = num / 10;
digit++;
}
printf("%d", digit);
while (number > 0) {
remainder = number % 10;
check = check + (float)pow(remainder, digit);
number = number / 10;
}
if (check == n) {
printf(" \n %d is ArmStrong number.", check);
} else {
printf("\n Its Not.");
}
getch();
}
25/01/2019
Resume | Powered By indiowebsolution.in Your description
Pointers are name: they "point" to locations in memory.
syntax.
*;
eg.
int *points_to_integer;
In a C program, all lines that start with # are processed by preprocessor which is a special program invoked by the compiler. In a very basic term, preprocessor takes a C program and produces another C program without any #
List of header files in c language
◆ stdio.h - Input/Output Functions
◆ conio.h - console input/output
◆ assert.h - Diagnostics Functions
◆ ctype.h - Character Handling Functions
◆ cocale.h - Localization Functions
◆ math.h - Mathematics Functions
◆ setjmp.h - Nonlocal Jump Functions
◆ signal.h - Signal Handling Functions
◆ stdarg.h - Variable Argument List Functions
◆ stdlib.h - General Utility Functions
◆ string.h - String Functions
◆ time.h - Date and Time Functions
◆ complex.h - A set of function for manipulating complex numbers
◆ stdalign.h - For querying and specifying the alignment of objects
◆ errno.h - For testing error codes
◆ locale.h - Defines localization functions
◆ stdatomic.h - For atomic operations on data shared between threads
◆ stdnoreturn.h - For specifying non-returning functions
◆ uchar.h - Types and functions for manipulating Unicode characters
◆ fenv.h - A set of functions for controlling floating-point environment
◆ wchar.h - Defines wide string handling functions
◆ tgmath.h - Type-generic mathematical functions
◆ stdarg.h - Accessing a varying number of arguments passed to functions
◆ stdbool.h - Defines a boolean data type
Click here to claim your Sponsored Listing.
Location
Category
Website
Address
Bangalore
560076