Question
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" , ...
0
3 days 0 Answers 2 views

Question
#include<stdio.h> #include<conio.h> #include<windows.h> int main() { FILE *file; char name[20]; int leangth = strlen(name); int i,age,phn_num; float result; fopen("admitionData.text","w"); if(file==NULL) { printf("Error"); } else { system("cls"); printf(" Enter Student First Name : "); scanf("%s",name); printf(" Enter Student Age : "); scanf("%d",&age); printf(" ...
0
3 weeks 0 Answers 14 views

Question
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 ...
solved 0
1 month 2 Answers 43 views

Question
#include<stdio.h> void sqr_it(int num); int main() { sqrt(10.o); return 0; }void sqr_it(int num) { printf("%d"num*num); }
in progress 0
1 month 1 Answer 33 views

Question
Write a program using three classes named cricket,football and badminton where the constructor of each class takes one int and one char value as argument. The constructors contain the message"in cricket clss","in football class","in badminton class"respectively.Complete the program considering the ...
in progress 0
3 months 24 Answers 282 views

Question
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 ...
in progress 2
3 months 24 Answers 190 views

Question
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 ...
in progress 0
3 months 23 Answers 189 views

Question
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 ...
in progress 0
3 months 19 Answers 216 views