please help me . where is the problem in choice 1 .. the 1st alphabet is not swapping it's getting vanished ..
#include<stdio.h>
int main()
{
int choice;
printf("choicen1:alphabet,n2:numbern");
scanf("%d" , &choice);
if(choice==1)
{
char ch1,ch2,temp;
printf("enter the 1st:");
scanf("%s" , ...
A particle has initial velocity and acceleration. If its velocity after certain time is v then what will its
displacement be in twice of that time?
Input
The input will contain two integers in each line. Each line makes one ...
Create 3 classes named base, derived1,derived2. Here base class is inherited by derived1 and derived2. now write a function named void_print() in the base class which will print the message "in the base class". and then redefined void_print() function in ...
Create an abstract class called Phone. Phone will have only one function called callReceive(). Create a derived class called Landline and Mobile where Landline will define callReceive() so that it will show output "pick up" and similarly Mobile will show ...
Write a program by using two classes called A and B where the constructor of each class takes one int and one char type value as an argument and the constructor shows the message "in oop class". Complete the program ...