ar
Feedback
C Programming Codes

C Programming Codes

الذهاب إلى القناة على Telegram

C Programming Codes || Quizzes || DSA Learn along with the community Any queries admin - @Pradeep_saii

إظهار المزيد

📈 نظرة تحليلية على قناة تيليجرام C Programming Codes

تُعد قناة C Programming Codes (@c_programming_codes) في القطاع اللغوي الإنكليزية لاعباً نشطاً. يضم المجتمع حالياً 13 383 مشتركاً، محتلاً المرتبة 9 569 في فئة التكنولوجيات والتطبيقات والمرتبة 31 996 في منطقة الهند.

📊 مؤشرات الجمهور والحراك

منذ تأسيسه في невідомо، حقق المشروع نمواً سريعاً وجمع 13 383 مشتركاً.

بحسب آخر البيانات بتاريخ 15 يونيو, 2026، تحافظ القناة على نشاط مستقر. خلال آخر 30 يوماً تغيّر عدد الأعضاء بمقدار -238، وفي آخر 24 ساعة بمقدار -13، مع بقاء الوصول العام مرتفعاً.

  • حالة التحقق: غير موثّقة
  • معدل التفاعل (ER): يبلغ متوسط تفاعل الجمهور 9.80‎%. وخلال أول 24 ساعة من النشر يحصد المحتوى عادةً N/A‎% من ردود الفعل نسبةً إلى إجمالي المشتركين.
  • وصول المنشورات: يحصل كل منشور على متوسط 0 مشاهدة. وخلال اليوم الأول يجمع عادةً 0 مشاهدة.
  • التفاعلات والاستجابة: يتفاعل الجمهور بانتظام؛ متوسط التفاعلات لكل منشور يبلغ 0.
  • الاهتمامات الموضوعية: يركز المحتوى على مواضيع رئيسية مثل input, string, scanf("%d, array, element.

📝 الوصف وسياسة المحتوى

يصف المؤلف القناة بأنها مساحة للتعبير عن الآراء الذاتية:
C Programming Codes || Quizzes || DSA Learn along with the community Any queries admin - @Pradeep_saii

بفضل وتيرة التحديث المرتفعة (أحدث البيانات بتاريخ 16 يونيو, 2026) تحافظ القناة على حداثتها ومستوى وصول مرتفع. وتُظهر التحليلات تفاعلاً نشطاً من الجمهور، ما يجعلها نقطة تأثير مهمة ضمن فئة التكنولوجيات والتطبيقات.

13 383
المشتركون
-1324 ساعات
-627 أيام
-23830 أيام
أرشيف المشاركات
Method Overloading
cpp
#include <iostream>
using namespace std;

int area(int side) {
    return side * side;
}

int area(int length, int breadth) {
    return length * breadth;
}

int main() {
    int side,length,breadth;
    cout << "Enter a side length of a square:" << endl;
    cin >> side;
    cout << "Enter length and breadth of rectangle:" << endl;
    cin >> length >> breadth;
    cout << "Area of square: " << area(side) << endl;         
    cout << "Area of rectangle: " << area(length, breadth) << endl;    
    return 0;
}

Pass by Reference
#include <iostream>
using namespace std;

void passByReference(int& x) {
    x = 20;  
}

int main() {
    int a = 10;
    cout << "Value of a before function call: " << a << endl; 
    passByReference(a);
    cout << "Value of a after function call: " << a << endl; 
    return 0;
}

Pass by Value Program
#include <iostream>
using namespace std;

void passByValue(int x) {
    x = 20;  
}

int main() {
    int a = 10;
    cout << "Value of a before function call: " << a << endl;  
    passByValue(a);
    cout << "Value of a after function call: " << a << endl;  
    return 0;
}

Program : Write a function to find maximum of two numbers.
#include <iostream>

using namespace std;
int findMax(int n1 , int n2){
    if(n1 > n2){
        return n1;
    }
    return n2;
}

int main() {
     int num1,num2;
     cout << "Enter any two different numbers:"<<endl;
     cin >> num1 >> num2;
     int max = findMax(num1,num2);
     cout << "Maximum of "<< num1 << " and " << num2 << " is " << max;
     return 0;
}

🚨🚨🚨Free Udemy Courses Guys join this channel if you want any courses like c,cpp, java etc. stay active in channel by unmuting it and enroll to the course as soon as they are posted 👇👇👇 https://t.me/udemy_course_4u

Program : Sum on n natural numbers using do while loop.
#include <iostream>

using namespace std;

int main() {
    int n,sum=0,i=1;
    cout << "Enter the value of n:";
    cin >> n;
    do{
        sum = sum + i;
        i++;
    }while(i <= n);
    cout << "Sum of "<< n << " natural numbers :" << sum;
}

Program : Design a number guessing game using while loop. Take range of numbers from 0 - 9 hard code any number between 0 and 9 Ask user to guess the number after guessing display number of attempts made to guess the number.
#include <iostream>

using namespace std;

int main()
{
    int numberToGuess = 4;
    int attempts = 0;
    int guess;
    while (guess != numberToGuess)
    {
        cout << "Guess the number between 0 and 9:" << endl;
        cin >> guess;
        attempts++;
        if(guess == numberToGuess){
            cout << "You guessed it right in " << attempts << " attempts" << endl;
        }
    }
    cout << "Game ended";
    return 0;
}

Program: Given an array with numbers 11,12,13,14,15 calculate the sum of elements in array using range based for loop.
cpp
#include <iostream>

using namespace std;

int main(){
    int numbers[] = {11,12,13,14,15};
    int sum = 0;
    for(int number : numbers){
        sum = sum + number;
    }
    cout << "Sum = "<< sum;
    return 0;
}

Program : To calculate factorial of a given number
cpp
#include <iostream>

using namespace std;

int main() {
    int num,res=1;
    cout << "Enter a positive number:" << endl;
    cin >> num;
    if(num < 0){
        cout << "You entered a negative number" << endl;
    }
    else if(num == 0){
        cout << "0! = " << "1";
    }
    else{
        for(int i = 1;i <= num;i++){
            res = res * i;
        }
        cout << "Factorial of " << num << " is "<<res;
    }

    return 0;
}

Guys join this channel if you want any courses like c,cpp, java stay active in channel by unmuting it and enroll to the course as soon as they are posted https://t.me/udemy_course_4u

Program: Implement a calculator using a switch case.
#include <iostream>
using namespace std;

int main() {
    char op;
    double num1, num2;
    cout << "Enter an operator (+, -, *, /): ";
    cin >> op;

    cout << "Enter two numbers: ";
    cin >> num1 >> num2;

    switch (op) {
        case '+': cout << "Result: " << num1 + num2 << endl; break;
        case '-': cout << "Result: " << num1 - num2 << endl; break;
        case '*': cout << "Result: " << num1 * num2 << endl; break;
        case '/': 
            if (num2 != 0)
                cout << "Result: " << num1 / num2 << endl;
            else
                cout << "Error! Division by zero." << endl;
            break;
        default: cout << "Invalid operator!" << endl;
    }

    return 0;
}

🆓 Free Udemy Course 4 U 🆓 ✅ Enroll before Coupon Expires 👉 https://www.udemy.com/course/c-programming-bootcamp-for-beginners/?couponCode=481202D2014CCB821F7F 🛺 Share and Support 🔗https://t.me/udemy_course_4u

Program: Check if a given year is a leap year.
#include <iostream>
using namespace std;

int main() {
    int year;
    cout << "Enter a year: ";
    cin >> year;

    if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
        cout << year << " is a Leap Year." << endl;
    else
        cout << year << " is not a Leap Year." << endl;

    return 0;
}

Program: Find the largest of three numbers using if-else.
#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cout << "Enter three numbers: ";
    cin >> a >> b >> c;

    if (a >= b && a >= c)
        cout << "Largest number is: " << a << endl;
    else if (b >= a && b >= c)
        cout << "Largest number is: " << b << endl;
    else
        cout << "Largest number is: " << c << endl;

    return 0;
}

Program: Check if a number is even or odd using the modulus operator.
#include <iostream>
using namespace std;

int main() {
    int num;
    cout << "Enter a number: ";
    cin >> num;

    if (num % 2 == 0)
        cout << num << " is Even." << endl;
    else
        cout << num << " is Odd." << endl;

    return 0;
}

Program: Implement a calculator using a switch case.
#include <iostream>
using namespace std;

int main() {
    char op;
    double num1, num2;
    cout << "Enter an operator (+, -, *, /): ";
    cin >> op;

    cout << "Enter two numbers: ";
    cin >> num1 >> num2;

    switch (op) {
        case '+': cout << "Result: " << num1 + num2 << endl; break;
        case '-': cout << "Result: " << num1 - num2 << endl; break;
        case '*': cout << "Result: " << num1 * num2 << endl; break;
        case '/': 
            if (num2 != 0)
                cout << "Result: " << num1 / num2 << endl;
            else
                cout << "Error! Division by zero." << endl;
            break;
        default: cout << "Invalid operator!" << endl;
    }

    return 0;
}

Program: Swap two numbers without using a third variable.
#include <iostream>
using namespace std;

int main() {
    int a, b;
    cout << "Enter two numbers: ";
    cin >> a >> b;

    a = a + b;
    b = a - b;
    a = a - b;

    cout << "After swapping: " << a << " " << b << endl;
    return 0;
}

Program for rolling dice.
#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;
int main() {
    int result;
    const short maxValue = 6;
    const short minValue = 1;
    srand(time(nullptr));
    result = (rand() % (maxValue - minValue + 1)) + minValue;
    cout << result;    
    return 0;
}

Program to calculate area of circle.
#include <iostream>
#include <cmath>

using namespace std;
int main() {
    double radius;
    double area;
    const double PI = 3.14;
    cout << "Enter the radius of the circle: ";
    cin >> radius;
    area = PI * pow(radius,2);
    cout << "Area of circle: "<< area;
    return 0;
}

Program to convert temperature from Fahrenheit to Celsius.
#include <iostream>
using namespace std;
int main() {
    double fahrenheitTemperature;
    double temperatureInCelsius;
    cout << "Enter your temperature in Fahrenheit:";
    cin >> fahrenheitTemperature;
    temperatureInCelsius = ((fahrenheitTemperature - 32) * 5) / 9;
    cout << "Temperature in celsius : " << temperatureInCelsius;
    return 0;
}