






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







(^) IDEs are usually created to make things easier for the developers and increase their productivity by providing several useful features like code editor, debugging support, compiler, auto code completion, and many others. (^) IDE provides you with a comprehensive set of tools for software development with C or C++ language. (^) There are numerous C and C++ IDEs available for experienced developers as well as for newbie programmers to do programming without any hassle, and you can opt for any one of them as per your requirements.
(^) Input means to provide the program with some data to be used in the program (^) Output means to display data on the screen or write the data to a printer or a file. (^) Following are the functions used for standard input and output: o (^) printf() - Show Output o (^) scanf() function - Take Input o (^) getchar() and putchar() function o (^) gets() and puts() function
(^) The printf() function is the most used function in the C language. This function is defined in the stdio.h header file and is used to show output on the console. (^) Example: #include <stdio.h> int main() { printf("Welcome to Study"); // using printf() return 0; }
#include <stdio.h> int main() { float num1 = 15.50; //4bytes double num2 = 15556522.0978678; //8bytes printf("Value of num1 is: %f \n", num1); printf("Value of num2 is: %lf", num2); return 0; }
#include <stdio.h> int main() { int day = 20; int month = 11; int year = 2021; printf("The date is: %d-%d-%d", day, month, year); return 0; }
#include <stdio.h> int main() { //using scanf() for multiple inputs char gender; int age; printf("Enter your age and then gender(M, F or O): "); scanf("%d %c", &age, &gender); printf("You entered: %d and %c", age, gender); return 0; }