DEV Community

Alisher Maxamadjonov
Alisher Maxamadjonov

Posted on

1 1 1 1 1

O'zgaruvchilar.

C++ dasturlash tilida turli xil o'zgaruvchilar mavjud.
Ular har bir tur xil kalit so'zlari bilan nomlangan.
Xotiraning nomlangan qismi bo'lib, o'zidan ma'lum bir qiymatlarni saqlaydi.

int - 10 kabi butun sonlar uchun ishlatiladi.

float - 19.99 kabi kasr sonlar uchun ishlatiladi.

char - '#' kabi belgilar uchun ishlatiladi.

string - "Hello World" kabi tekst va matnlar uchun ishlatiladi.

#include <iostream>

using namespace std;

int main()
{

  int son = 10;
  float kasr son = 12.2;
  char belgi = '#';
  string ism = "Ilhom";

  return 0;
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay