C and Cpp Programming
This is the place for beginners who want to learn C/C++
03/26/2023
😄Share it with your Beginner friends
Follow
👉👈
👉👈 for more
⚪Join our public télegram group
👉🏻 LINK IN BIO
03/20/2023
😇Challenge your friends by sharing this post Comment down the output👇🏼
Follow Coding | JAVA | C/C++ | 125k🎯]]
👉Coding | JAVA | C/C++ | 125k🎯]]👈
👉Coding | JAVA | C/C++ | 125k🎯]]👈 for more
✨✨✨✨✨✨✨✨✨✨✨
👩❤️👩 Share it with your friends
Answer:- C
📌Scope resolution (::) operator is used to access the variable which is outside the scope.
📌 ::a-!a++ is evaluated as 10 - 0
(!a++ is evaluated as 0, since there ! operator)
📌 Hence we got 10 as the output.
⚪Join our public télegram group
👉🏻 DM me for link or search codeguyscode on télegram👈🏻
📢 Turn on notification
02/24/2023
Comment down the output of the following code without seeing explanation 👇🏼👇🏼👇🏼👇🏼👇🏼👇🏼👇🏼
Follow Coding | JAVA | C/C++ | 125k🎯]]
👉Coding | JAVA | C/C++ | 125k🎯]]👈
👉Coding | JAVA | C/C++ | 125k🎯]]👈 for more
Answer: 10 40
📌 ptr = &a; (pointer ptr starts to point 'a')
ptr = &b; (now pointer ptr starts to point 'b')
📌 *ptr = *ptr+*ptr;
This statement is equal to
b = 20 + 20 (since ptr points to b therefore *ptr = b)
📌 Hence we get "10 40" as the output.
➖➖➖➖➖➖➖➖➖➖➖
New post come daily.
Stay tuned
📢 Turn on notification
➖➖➖➖➖➖➖➖➖➖➖
Click here to claim your Sponsored Listing.
Category
Website
Address
Venice, CA
90291