Posts

In this article, you will learn about copy Constructor and where to use it. Also, you will learn about different troubleshooting related to it.

This constructor has an argument of an object of same type or same class as a reference.This constructor has an argument of an object of same type or same class as a reference. This constructor has an argument of an object of same type or same class as a reference.This constructor has an argument of an object of same type or same class as a reference. An Example to Begin WithThis constructor has an argument of an object of same type or same class as a reference.This constructor has an argument of an object of same type or same class as a reference. a add (a c , a d)
{
a sum ;
sum = c + d ;
return sum;
}
Output
Loading weapon features.
Loading bomb features.
Loading gun features.
This constructor has an argument of an object of same type or same class as a reference.Thi…

Defining a StructureDefining a Structure is a process of creating the skeleton of physical object that can be understood by compiler .It consists of Structure name and the description of it’s member(property).

Definition of a structure creates a template are format that describes the characteristics of it’s member .

The general syntax of a structure definition is:Struct structurename{
Datatype member1;
Datatype member2;
…………………………………..
Datatype membern;
};Here struct is a keyword , which tells the compiler that a structure is being defined . member1 , member2 ,………,membern are the member of structure and are declared inside curly bracket .
There should be a semicolon at the end of the curly braces

These member can be of any data type like int , char , float , array , pointer or another structure

Write a C program to check if the supplied year is leap year or not. This C program check if the supplied year is leap year or not. C Program source code#include<stdio.h>
#include<conio.h>
int main()
{
int y;
printf("Enter a year:\n");
scanf("%d",&y);
if(y%400==0)
{
printf("Its a leap year.");
}
else if(y%100==0)
{
printf("Its not a leap year,");
}
else if(y%4==0)
{
printf("Its a leap year,");
}
else
{
printf("Its not a leap year,");
}
getch();
return(0);
}
You can Browse related article below for more information and program code related to different math operation. Does above is helpful , Post you views in comment DO NOT MISS OTHER C PROGRAMMING TUTORIAL* indicates required Email Address *

Write a C program print even numbers between given two numbers.This C program prints the even number between the two number supplied by user C Program source code#include<stdio.h>
#include<conio.h>
int main()
{
int i,n1,n2;
printf("Enter any two numbers:\n");
scanf("%d%d",&n1,&n2);
for(i=n1;i<=n2;i++)
{
if(i%2==0)
{
printf("%d\t",i);
}
}
printf("\nThese are the even numbers between those two numbers.");
getch();
return(0);
}
You can Browse related article below for more information and program code related to different math operation. Does above is helpful , Post you views in comment DO NOT MISS OTHER C PROGRAMMING TUTORIAL* indicates required Email Address *

StructureThe meaning of structure is the quality of being organized in general term. To understand the structure in programming language you must be able to link it with general meaning 1) How can we link it with general meaning?2) What is structure in c?In programming structure is the collection of various data of different data type. We can connect it with the class of java or other OOP language. As class has object which have property and method, But here we have an object and its property or value.

Following quiz provides Multiple Choice Questions (MCQs) related to C Programming input and output . You will have to read all the given answers and click over the correct answer. You are given 3 to 4 options , you have to click on option until you are right.1.What is difference between getch() and getche()?
getch() do not take'e'

TRY AGAIN
getch() do not show input data in screen but getche() show input data in screen

perfect
getch() is used for all media but getche() is not.

Try again 2.scanf("%3f%4f",&x,&y);
Input is: 5.93 , 65.87
5.93 is stored in x and 65.87 is stored in y

Try again
5.9 is stored in x and 65.8 is stored in y

Try again
5.9 is stored in x and 3.00 is stored in y

WOW , you are write 3.What is use of escape character '\b'?
It backs the program