Lädt...


🔧 19. Valu va Reference Type


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

*a) Quyidagi kodning natijasini tushuntiring: *

int a = 100;
int b = a;
b = 200;
Console.WriteLine(a);

bu kodda int tipida a nomli o'zgaruvchi e'lon qilinadi va uni 100 ga tenglaymiz. keyin int tipida yana b nomli o'zgaruvchi e'lon qilib uni a o'zgaruvchiga tenglab qo'yamiz. keyin b o'zgaruvchiga 200 ni tenglab qo'yamiz. Keyin Console.WriteLine() kalit so'zi orqali a ni consolga chop etamiz. Javob: 100.

*b) Quyidagi kodni natijasini ayting va tushuntiring: *

class Car
{
    public string Model;
}
Car car1 = new Car();
car1.Model = "BMW";
Car car2 = car1;
car2.Model = "Audi";
Console.WriteLine(car1.Model);

Car nomli class yaratamiz. Uni ichida Model nomli object yaratamiz. classdan tashqarida car1 nomli o'zgaruvchi yaratamiz. Keyin car1 ga BMW nomli stringni saqlaymiz. Keyin Car classdan yana car2 nomli o'zgaruvchi e'lon qilamiz va unga car1 ni saqlaymiz. Keyin car2 ga Audi nomli stringni saqlaymiz. Keyin Console.WriteLine() kalit so'zi orqali car1 ni consolga chop etamiz.

...

🔧 Valu va Reference Type


📈 50.73 Punkte
🔧 Programmierung

🔧 19. Valu va Reference Type


📈 50.73 Punkte
🔧 Programmierung

🔧 Value type vs Reference type in JavaScript


📈 26.03 Punkte
🔧 Programmierung

🔧 Value type va Reference Type


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type and Reference Type


📈 26.03 Punkte
🔧 Programmierung

🔧 11. Value Type va Reference Type (Complex Examples)


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type va Reference Type (Advanced)


📈 26.03 Punkte
🔧 Programmierung

🔧 11. Value Type va Reference Type (Complex Examples)


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type va Reference Type (Complex Examples)


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type va Reference Type (Complex Examples)


📈 26.03 Punkte
🔧 Programmierung

🔧 Value type va Reference type


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type and Reference Type 2


📈 26.03 Punkte
🔧 Programmierung

🔧 11. Value Type va Reference Type (Complex Examples)


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type and Reference Type


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type va Reference Type


📈 26.03 Punkte
🔧 Programmierung

🔧 4. Value Type va Reference Type


📈 26.03 Punkte
🔧 Programmierung

🔧 Value Type and Reference Type


📈 26.03 Punkte
🔧 Programmierung

🔧 Reference Type and Value Type in Swift


📈 26.03 Punkte
🔧 Programmierung

🕵️ CVE-2022-45122 | Movable Type 7/Type Premium/Type Premium Advanced cross site scripting


📈 23.86 Punkte
🕵️ Sicherheitslücken

📰 Python Type Hinting: From Type Aliases To Type Variables and New Types


📈 23.86 Punkte
🔧 AI Nachrichten

🕵️ CVE-2022-43660 | Movable Type 7/Type Premium/Type Premium Advanced os command injection


📈 23.86 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2022-45113 | Movable Type 7/Type Premium/Type Premium Advanced URL input validation


📈 23.86 Punkte
🕵️ Sicherheitslücken

🔧 19. Value or Reference Type


📈 18.08 Punkte
🔧 Programmierung

🔧 27. Value va Reference Type (Advanced)


📈 18.08 Punkte
🔧 Programmierung

🔧 Value va Reference Type


📈 18.08 Punkte
🔧 Programmierung

🔧 Difference between Type Error and Reference Error in JavaScript


📈 18.08 Punkte
🔧 Programmierung

🔧 Type Error vs Reference Error in JavaScript – What's the Difference?


📈 18.08 Punkte
🔧 Programmierung

🕵️ Nanopb up to 0.3.9.7/0.4.4 Message Type free/realloc oneof release of reference


📈 18.08 Punkte
🕵️ Sicherheitslücken

📰 How Type I Error, Confidence Intervals, Type II Error, and Power Are All Related


📈 15.9 Punkte
🔧 AI Nachrichten

🔧 Type ✔ Vs Interface ❌: Why you should chose type over interface in typescript.


📈 15.9 Punkte
🔧 Programmierung

🕵️ Medium CVE-2015-3173: Custom content type manager project Custom content type manager


📈 15.9 Punkte
🕵️ Sicherheitslücken

🔧 Getting Started with TypeScript: Type Annotations & Type Inference (Part I)


📈 15.9 Punkte
🔧 Programmierung

🔧 How To Map PostgreSQL `point` Data Type To Java PGpoint Data Type?


📈 15.9 Punkte
🔧 Programmierung

matomo