Copy one variable into another variable by R4R Team

this concept is only for the begineers in C language.

program-

#include < stdio.h>
int main()
{
int first,second;
printf("Enter number\n");
scanf("%d",&first);
//copy one variable into other
second=first;
printf("After copy, number is %d",second);
}


output-

Enter number
234
After copy, number is 234

-In this program, we take a input of the one variable and try to copy that variable into other variable.
-second=first; this line are able to do this.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!