Type Conversion and Ways of Typecasting Programming

C++ – Type Conversion and Ways of Typecasting

  • May 4, 2021
  • 0 Comments

Type conversion refers to the local modification of type for variable or subexpression. Type conversions depend on the specified operator and the type of the operand or operators. Type conversions are performed in the following cases: When a value of one type is assigned to a variable of a different type or an operator converts […]

Class and Object With Syntax Programming

C++ – Class and Object With Syntax

  • May 4, 2021
  • 0 Comments

C++ – Class A class is a collection of objects of similar type which have same property and common behavior. For example, roll, name, age, are the member of class student and pigeon, sparrow, crow, etc are the object of the class bird. A class is a user-defined data type that holds both data and […]

OOP Introduction Characteristics and Approach Programming

C++ – OOP Introduction Characteristics and Approach

  • May 4, 2021
  • 0 Comments

C, Pascal, FORtran are procedural language in which each statement tells the computer to do something like, get some input from the user and calculate or process that input and get the desired result [ add/divide/difference/multiple of any two numbers ]. Therefore, a program in the procedural language is a list instruction which is suitable […]

Advantages & Disadvantages of Reading Literature Pros and Cons

Advantages & Disadvantages of Reading Literature

  • May 4, 2021
  • 0 Comments

Literature is one of the best way to express feelings, emotions and imagination. This also helps to breakdown the stereotypes of the society and culture. Along with that it also let us to express our own understanding about different things and subject matters. That exactly called as a philoshopy. Literature is any collection of a […]

Inline Function and Its Use Programming

C++ – Inline Function and Its Use

  • May 4, 2021
  • 0 Comments

To minimize the time, an inline function is used. When there are only two or three statements, an inline f() is used. The f() is copied into the main function after it is called. You must place the keyword inline before the function name and define the function before calling it. The compiler ignores the […]

Convert Entered Number of Days into Years, Months and Days Programming

C – Convert Entered Number of Days into Years, Months and Days

  • May 4, 2021
  • 0 Comments

C – Convert Entered Number of Days into Years, Months, and Days C Code #include <stdio.h>#include <conio.h>void main(){ int d,year,month,day,remd; clrscr(); printf(“Enter the number of days to convert:”); scanf(“%d”,&d); year=d/365; remd=d%365; month=remd/30; day=remd%30; printf(“Year=%dnMonth=%dnDay=%d”,year,month,day); getch();}

Find Total, Percentage and Division of Student Programming

C – Find Total, Percentage and Division of Student

  • May 4, 2021
  • 0 Comments

Write a program to find the division of a student by asking 5 subjects numbers Write a program to find Total and percentage by entering 5 subject marks of a student. C Code #include <stdio.h>#include <conio.h>void main(){ int sub1, sub2, sub3, sub4, sub5, total; float per; printf(“Enter marks of 5 subjects:”); scanf(“%d%d%d%d%d”,&sub1,&sub2, &sub3, &sub4, &sub5); […]

Find Greater Number by Using Nested If Else Programming

C – Find Greater Number by Using Nested If Else

  • May 4, 2021
  • 0 Comments

Write a program to find greater number by using nested if else. C Code #include <stdio.h>#include <conio.h>void main(){ int number1; int number2; printf(“Enter two integer numbers :”); scanf(“%d%d”, &number1, &number2); if(number1>number2) printf(“First number is larger”); else if(number1<number2) printf(“second number is larger than first number”); else printf(“both numbers are equal”); getch();} Output