Konstanta CONST

kenccik

kenccik

Posted on March 10, 2023

Konstanta CONST

Konstanda bu ozgarmas ozgaruvhci degani biz bu ozgaruvchin yaratganimizda biz uni ozgar tirolamaymiz.
*Man bu ni hozir kodda tushuntirib beraman.
*


#include <iostream>
using namespace std;
​
int main() {
    const int n = 20;  // n ning qiymati doim 20 ga teng bo'ladi 

    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Bu kodda esa man hato sini korsatib beraman

#include <iostream>
using namespace std;
​
int main() {
    const int n = 13;  
int n = 20;
    return 0;
}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
kenccik
kenccik

Posted on March 10, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Veriables in C++
beginners Veriables in C++

March 4, 2024

DAY 104 - Merge k Sorted Lists
beginners DAY 104 - Merge k Sorted Lists

September 15, 2023

DILI #6
beginners DILI #6

July 7, 2023

Did I learn it? #3
beginners Did I learn it? #3

June 16, 2023

Did I learn it? #2
beginners Did I learn it? #2

June 9, 2023