Details verified of Baliram Sah✕
Identity
Education
Know how UrbanPro verifies Tutor details
Identity is verified based on matching the details uploaded by the Tutor with government databases.
Online Classes Hindi Mother Tongue (Native)
English Proficient
AKTU 2017
Bachelor of Technology (B.Tech.)
Chandu Nagar, Delhi, India - 110094
Phone Verified
Report this Profile
Is this listing inaccurate or duplicate? Any other problem?
Please tell us about the problem and we will fix it.
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in Embedded Systems Training
3
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in C++ Language Classes
3
Proficiency level taught
Advanced C++, Basic C++
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in C Language Classes
3
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in Embedded C Training
3
Answered on 20/04/2021
Ask a Question
//Write a program to swap values of two variables with using third variable.
#include<stdio.h>
int main()
{
int x=10, y=20;
printf("Before swap x=%d x=%d\n",x,y); //x=10 y=20
int temp;// take third variable
temp=x; // assign value of x in temp variable
x=y; // assign value of y in x
y=temp; //assign value of temp in y
printf("After swap x=%d y=%d",x,y);// x=20 y=10
return 0;
}
//Write a program to swap values of two variables without using third variable.
#include<stdio.h>
int main()
{
int x=10, y=20;
printf("Before swap x=%d x=%d\n",x,y); //x=10 y=20
x=x+y;//adding x and y and assign in x =30
y=x-y; // subtract y from x and assign in y =10
x=x-y; //subtract y from x and assign in x =20
printf("After swap x=%d y=%d",x,y); // x=20 y=10
return 0;
}
Ask a Question
Also have a look at
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in Embedded Systems Training
3
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in C++ Language Classes
3
Proficiency level taught
Advanced C++, Basic C++
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in C Language Classes
3
Class Location
Online class via Zoom
Student's Home
Tutor's Home
Years of Experience in Embedded C Training
3
Answered on 20/04/2021
Ask a Question
//Write a program to swap values of two variables with using third variable.
#include<stdio.h>
int main()
{
int x=10, y=20;
printf("Before swap x=%d x=%d\n",x,y); //x=10 y=20
int temp;// take third variable
temp=x; // assign value of x in temp variable
x=y; // assign value of y in x
y=temp; //assign value of temp in y
printf("After swap x=%d y=%d",x,y);// x=20 y=10
return 0;
}
//Write a program to swap values of two variables without using third variable.
#include<stdio.h>
int main()
{
int x=10, y=20;
printf("Before swap x=%d x=%d\n",x,y); //x=10 y=20
x=x+y;//adding x and y and assign in x =30
y=x-y; // subtract y from x and assign in y =10
x=x-y; //subtract y from x and assign in x =20
printf("After swap x=%d y=%d",x,y); // x=20 y=10
return 0;
}
Ask a Question
Reply to 's review
Enter your reply*
Your reply has been successfully submitted.
Certified
The Certified badge indicates that the Tutor has received good amount of positive feedback from Students.