Posts

Showing posts from July, 2021

โ„ญ++ __๐”ญ๐”ฏ๐”ฌ๐”ฃ๐”ข๐”ฐ๐”ฐ๐”ฆ๐”ฌ๐”ซ๐”ž๐”ฉ ๐”ฉ๐”ž๐”ณ๐”ข๐”ฉ__!☠️

Image
          แด„++ แด˜ส€แดษขส€แด€แดษชษดษข สŸแด€ษดษขแดœแด€ษขแด‡ Chapter 1: Getting started with C++ Version Standard Release Date C++98 ISO/IEC 14882:1998 1998-09-01 C++03 ISO/IEC 14882:2003 2003-10-16 C++11 ISO/IEC 14882:2011 2011-09-01 C++14 ISO/IEC 14882:2014 2014-12-15 C++17 TBD 2017-01-01 C++20 TBD 2020-01-01 Section 1.1: Hello World :- This program prints Hello World! to the standard output stream: #include <iostream> int main() {  std::cout << "Hello World!" << std::endl; } See it live  On click Analysis     Let's examine each part of this code in     detail:      •   #include <iostream> is a preprocessor directive that includes the content of the standard C++ header file iostream. iostream is a standard library header file that contains definitions of the standard input and output streams. These definitions are included in the std namespace, explained below. The standard input/output (I/O) streams provide ways for programs to get input from and o

๐•ป๐–—๐–Ž๐–“๐–™๐–‹() && ๐•พ๐–ˆ๐–†๐–“๐–‹()__In _C_☠️

Image
:- printf() and scanf() in C__. :- The printf() and scanf() functions are used for input and output in C language. Both functions are inbuilt library functions, defined in stdio.h (header file). printf() function__๐Ÿ‘‡๐Ÿป :-  The  printf() function  is used for output. It prints the given statement to the console.The syntax of printf() function is given below:-๐Ÿ‘‡๐Ÿป printf( "format string" ,argument_list) The  format string  can be %d (integer), %c (character), %s (string), %f (float) etc. scanf() function :-  The  scanf() function  is used for input. It reads the input data from the console. scanf( "format string" ,argument_list);    Program to print cube of given number :-  Let's see a simple example of c language that gets input from the user and prints the cube of the given number. #include<stdio.h>      int  main(){     int  number;     printf( "enter a number:" );     scanf( "%d" ,&number);     printf( "cube of nu