UrbanPro
true

Take BCA Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Learn C Language Programming with Free Lessons & Tips

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

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... read more

#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 less
Comments
Dislike Bookmark

Lesson 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... read more

// 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 less
Comments
Dislike Bookmark

Answered on 09/07/2020 Learn C Language Programming +4 C Language Advanced C++ Basic C++ C++ Language

Sunshine Technologies

- Yashwant Kanetkar - E Balagurusamy
Answers 24 Comments 2
Dislike Bookmark

Take BCA Tuition from the Best Tutors

  • Affordable fees
  • Flexible Timings
  • Choose between 1-1 and Group class
  • Verified Tutors

Answered on 03/05/2020 Learn C Language Programming +3 C Language Advanced C++ Basic C++

Manjunath B

I Can teach Programming Languages also

Of course, C language is only the heart of any processor or controller.Because of complexity in C peoples are looking to work on High-level languages like JAVA etc.
Answers 7 Comments 1
Dislike Bookmark

Answered on 22/01/2019 Learn C Language Programming +4 C Language Advanced C++ Basic C++ C++ Language

Amaninder Kaur

Trainer

All languages good for gamjng. But you can make 3d games in c# uaing unity software and it's very very interesting to work on it.
Answers 6 Comments
Dislike Bookmark

Answered on 28/12/2018 Learn C Language Programming +3 C Language Advanced C++ Basic C++

Narendra

Computer Science Tutor

yes. C++ is generally used to write system software. For example windows operating system are writeen in C++. Most of the operating system, device driver and antivirus programs are written by using C++.
Answers 6 Comments
Dislike Bookmark

Take BCA Tuition from the Best Tutors

  • Affordable fees
  • Flexible Timings
  • Choose between 1-1 and Group class
  • Verified Tutors

Answered on 08/11/2020 Learn C Language Programming +4 C Language Advanced C++ Basic C++ C++ Language

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.... read more

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 less
Answers 4 Comments
Dislike Bookmark

Answered on 22/01/2019 Learn C Language Programming +4 C Language Advanced C++ Basic C++ C++ Language

Amaninder Kaur

Trainer

Not at all because Python is very easy and beautiful language for programming. It reduces length of code and also minimize development time of project as compare to other languages.
Answers 4 Comments 1
Dislike Bookmark

Answered on 24/01/2019 Learn C Language Programming +4 C Language Advanced C++ Basic C++ C++ Language

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);} read more

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);
}

read less
Answers 3 Comments
Dislike Bookmark

Take BCA Tuition from the Best Tutors

  • Affordable fees
  • Flexible Timings
  • Choose between 1-1 and Group class
  • Verified Tutors

Answered on 05/11/2020 Learn C Language Programming +3 C Language Advanced C++ Basic C++

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: Constructor Copy Constructor Assignment operator; After C++11 - Move Copy constructor Move Assignment... read more

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: 

  1. Constructor 
  2. Copy Constructor
  3. Assignment operator; After C++11 - 
  4. Move Copy constructor 
  5. Move Assignment operator.
  • Rule of 0 means, your class is designed in a way, such that you don't need any of 1,2,3,4,5
  • Rule of 3 means, you need 1,2,3
  • Rule 3 of 5 means, you need all 1,2,3,4,5

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 less
Answers 1 Comments
Dislike Bookmark

About UrbanPro

UrbanPro.com helps you to connect with the best BCA Tuition in India. Post Your Requirement today and get connected.

Overview

Questions 464

Lessons 15

Total Shares  

+ Follow 36,139 Followers

You can also Learn

Top Contributors

Connect with Expert Tutors & Institutes for C Language Programming

x

Ask a Question

Please enter your Question

Please select a Tag

X

Looking for BCA Tuition Classes?

The best tutors for BCA Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BCA Tuition with the Best Tutors

The best Tutors for BCA Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more