Take BCA Tuition from the Best Tutors
Search in
Lesson Posted on 24/11/2020 Learn C Language Programming
// Use of Const Keyword in C Programming
Salim Ahmed
I am an experienced, qualified software trainer with over 10+ years of experience in teaching various...
#include
#include
void main()
{
float rad;
const float pi=3.1412f;
const char newline='\n';
float area_circle,circum_circle;
clrscr();
printf("Enter radius of a circle:");
scanf("%f",&rad);
area_circle=pi*rad*rad;
printf("Area of a circle:%f %c",area_circle,newline);
circum_circle=2*(pi*rad);
printf("Circumference of a circle:%f",circum_circle);
getch();
}
read lessLesson Posted on 18/11/2020 Learn C Language Programming
Let Us C for the Beginners // WAP to Print Hello World on ScreenÂ
Salim Ahmed
I am an experienced, qualified software trainer with over 10+ years of experience in teaching various...
// Sample program in C
// Standard Library/Header files
#include
#include
// Main function
(Program execution starts here)
Int main()
{
// Function for cleaning screen
clrscr();
// Function for printing statement on console
printf("Hello World");
//Function for holding the screen at runtime
getch();
return 0;
}
read lessAnswered on 09/07/2020 Learn C Language Programming
Sunshine Technologies
Take BCA Tuition from the Best Tutors
Answered on 03/05/2020 Learn C Language Programming
Manjunath B
I Can teach Programming Languages also
Answered on 22/01/2019 Learn C Language Programming
Amaninder Kaur
Trainer
Answered on 28/12/2018 Learn C Language Programming
Narendra
Computer Science Tutor
Take BCA Tuition from the Best Tutors
Answered on 08/11/2020 Learn C Language Programming
Vidya
Experienced in CS,AI-ML subject teaching from past 19 years
Yes, "C" is a sea, with C, you write high-level programs, assembly level using #Pragma & handle peripheral devices directly, With curses & 'C' you can play with "C and implement a graphical user interface for Linux", and the more :) you play with ASCII and Colour background in MS-DOS environment. Even much more 'C' language can do. I know this much.
read lessAnswered on 22/01/2019 Learn C Language Programming
Amaninder Kaur
Trainer
Answered on 24/01/2019 Learn C Language Programming
Srikanth Puli
C++ Tutor; Make it easy.
Using recursion;
#include<iostream>
void printNTimes(int nTimes)
{
if(nTimes <= 0)
return;
std::cout<<"I love programming ";
printNTimes(--nTimes);
}
int main()
{
int n = 0;
std::cin>>n;
printNTimes(n);
}
Take BCA Tuition from the Best Tutors
Answered on 05/11/2020 Learn C Language Programming
Ashish K.
Electrical Engineer from IIT Kanpur ,By profession Software Engineer and Teacher by passion
These rules are instrumental when you design your class.
When you create/write a new class, you always think of 5 place holder methods in it.
Earlier it was three, but after C++ 11 it became 5.
They are:
Best case is to design a class so that you have a rule of 0. But it's not always possible.
It will depend on the nature of your class members. It's bad practice to have them as raw pointers because then you have to write these constructors carefully and also think about resource leakage. Sometimes, we make them shared pointer or unique pointer etc. to reduce our work of writing these constructors and methods. If your class members are themselves following the rule of 0,3,5 etc., then it will also affect your decision whether you have to give all 5 or 0 or 3.
In a nutshell, it's always a good practice to think about these five methods, whenever you write a new class.
Good question!!
read lessUrbanPro.com helps you to connect with the best BCA Tuition in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for BCA Tuition Classes are on UrbanPro
The best Tutors for BCA Tuition Classes are on UrbanPro