- Видео 95
- Просмотров 23 612
Code With Muhib
Пакистан
Добавлен 17 авг 2024
Bitwise operators in c++ through examples and explanation _ bitwise or, and, xor operators in c++
Bitwise operators in c++ through examples and explanation _ bitwise or, and, xor operators in c++
Просмотров: 75
Видео
Code with Muhib _ Geometric calculator in phython through function #python #pythonprogramming
Просмотров 37Месяц назад
Code with Muhib _ Geometric calculator in phython through function #python #pythonprogramming
Code With Muhib #cppbasicsforbeginners #cppcoding #interviewcodingquestionsandanswers
Просмотров 50Месяц назад
Code With Muhib #cppbasicsforbeginners #cppcoding #interviewcodingquestionsandanswers
C++ MCQ | c++ mcq questions and answers | c++ interview questions and answers | c++ MCQ's
Просмотров 39Месяц назад
C MCQ | c mcq questions and answers | c interview questions and answers | c MCQ's
C++ interview questions and answers __ c++ __ c++ full course __ c programming for beginners
Просмотров 86Месяц назад
C interview questions and answers c c full course c programming for beginners
C++ MCQ | C++ mcq questions and answers | C++ mcq for competitive exams | c++ MCQ's
Просмотров 23Месяц назад
C MCQ | C mcq questions and answers | C mcq for competitive exams | c MCQ's
C++ MCQ | C++ mcq questions and answers | C++ mcq for competitive exams | c++ MCQ's
Просмотров 12Месяц назад
C MCQ | C mcq questions and answers | C mcq for competitive exams | c MCQ's
C++ MCQ | c++ mcq questions and answers | Top 10 C++ mcq questions and answers | c++ MCQ's
Просмотров 172 месяца назад
C MCQ | c mcq questions and answers | Top 10 C mcq questions and answers | c MCQ's
C++ interview questions and answers _ c++ programming __ c++ __ c++ full course __ sky full of star
Просмотров 312 месяца назад
C interview questions and answers _ c programming c c full course sky full of star
Computer programming MCQs _ programming language MCQs _ computer language MCQs for competitive exam
Просмотров 352 месяца назад
Computer programming MCQs _ programming language MCQs _ computer language MCQs for competitive exam
How to find average of 5 numbers in c++ _ C++ program for multiplication of two numbers #average
Просмотров 432 месяца назад
How to find average of 5 numbers in c _ C program for multiplication of two numbers #average
Computer programming MCQs _ programming language MCQs _ computer language MCQs for competitive exam
Просмотров 562 месяца назад
Computer programming MCQs _ programming language MCQs _ computer language MCQs for competitive exam
C++ program to print all characters which are involve in programming #devcpp #cppbasicsforbeginners
Просмотров 352 месяца назад
C program to print all characters which are involve in programming #devcpp #cppbasicsforbeginners
how many marks will increase Malakand board for those students who got marks in 1100 _ C++ examples
Просмотров 182 месяца назад
how many marks will increase Malakand board for those students who got marks in 1100 _ C examples
program for students attendance in university website in c /C++_ program for mobile selling in c/C++
Просмотров 382 месяца назад
program for students attendance in university website in c /C _ program for mobile selling in c/C
What is algorithm explain with example_ percentage program in C++ _ C++ data type about information
Просмотров 452 месяца назад
What is algorithm explain with example_ percentage program in C _ C data type about information
How to convert Celsius to Fahrenheit in C++ in Urdu / Hindi | C++ example @CodeWithHarry
Просмотров 262 месяца назад
How to convert Celsius to Fahrenheit in C in Urdu / Hindi | C example @CodeWithHarry
C++ practice questions | C++ basic programming questions | C++ basic examples
Просмотров 522 месяца назад
C practice questions | C basic programming questions | C basic examples
Ternary operator in if else __ ternary operator in programming __ ternary operator in c #ccoding
Просмотров 322 месяца назад
Ternary operator in if else ternary operator in programming ternary operator in c #ccoding
Simple calculator using if else in c __ C program for simple calculator using if else __ c in pashto
Просмотров 142 месяца назад
Simple calculator using if else in c C program for simple calculator using if else c in pashto
How to write code for MCQs checking in c programming __ c MCQs checking code __ c language in pashto
Просмотров 162 месяца назад
How to write code for MCQs checking in c programming c MCQs checking code c language in pashto
How to write code for prime numbers in c _ c prime number program _ c language full course in pashto
Просмотров 182 месяца назад
How to write code for prime numbers in c _ c prime number program _ c language full course in pashto
Nested if statement in c language __ what is if statement in c language __ c language in pashto
Просмотров 152 месяца назад
Nested if statement in c language what is if statement in c language c language in pashto
Examples of if else statements in c language _ Logical operators in c example _ c language in pashto
Просмотров 143 месяца назад
Examples of if else statements in c language _ Logical operators in c example _ c language in pashto
C language full course in pashto ____ Else if statements in c programming ____ C logical operators
Просмотров 113 месяца назад
C language full course in pashto Else if statements in c programming C logical operators
if else statement in c language __ c if else statement __ c programming if else statement
Просмотров 413 месяца назад
if else statement in c language c if else statement c programming if else statement
how to find area of rectangle _ c program to find the area of a circle how to find area of triangle
Просмотров 373 месяца назад
how to find area of rectangle _ c program to find the area of a circle how to find area of triangle
c language __ how to write a program for a basic calculator in c __ how to find a square area in c
Просмотров 183 месяца назад
c language how to write a program for a basic calculator in c how to find a square area in c
c language basics in pashto || how to take input from user || write a program for multiplication
Просмотров 243 месяца назад
c language basics in pashto || how to take input from user || write a program for multiplication
c _ language _ full _ course _ in pashto with __ muhib rahi __ what is initialization __ in pashto
Просмотров 323 месяца назад
c _ language _ full _ course _ in pashto with muhib rahi what is initialization in pashto
Reasoning: the return statement doesn’t return the count variable. It only returns 0, therefore the output it 0 because a function can only output what is in its return statement
Very nice Q
will you make more shorts like this because it is very useful for me it tells me that how the compiler compile the program and due to which reason the output comes with that value .. I appreciate your work sir
fantastic keep it up
it says "return 0"..?
The correct answer is 0, since you're returning 0. You asked for the output, not what was printed.
He asked the output, not what the function will return.
@lifematch the output of the program is what is returned by its main function. Its input is whatever is provided to it via command line arguments
@@TheFrankvHoof no no, the output of the program is not what function returns. You treat a program like a black box. The output is what the user sees. If you write a program that sets a LED to green, then the output is what LED shows you regardless what the function returns. The input of the program is what the user inputs, not what argument you are passing in a function. Likewise, the output of the program is what the user sees. The return of main, user can see that but the objective of this program is the print output, so any user would know that’s the output.
@@lifematch "The output is what the user sees" As a professional software developer, I have to STRONGLY disagree. The output is what is returned by the program. That can be directly (in the terminal) or indirectly (i.e. via a HTTP or websocket-message). What the user sees is a side-effect of the program. (or technically it's the output of what's being piped into cout. On Unix this would be the output of /dev/tty0, not your program)
@TheFrankvHoof absolutely not. We are talking about a “Program” meaning the code is black box. This program spews prints output. When you talk with Verifications/validation engineer, the output is what they see without looking at the code. The output is what executable spews out that the user sees. I don’t know what you being a professional software engineer has to do with this discussion, since this is very elementary (as far as theories goes). I have been embedded software engineer for 11 years but that doesn’t mean anything since this is theoretical discussion that even grad students can chip in. Maybe ask your colleagues, from different fields, what they think. Should be interesting to hear everyone opinions.
it won't work since -3 > -5
Fantastic question
👍🏻
4 times
3 right? I am not good in c++
Not possible.....
That'd be really good if you gave an explanation at the end of each quiz
How??
X power 0 Not times
@@Omarfikry2005it is still wrong , anything raised to power of 0 is 1
Nice C++
How
How and why ?
This is why i hate programming
This is not raising to a power in c++ this is logical or.
0?
because any number ANDed with 0 results in 0, it’s logically
can you explain how ?? i`m still beginner. I started learning about two weeks ago.
I’m assuming you know how an AND gate works here. & is the bitwise AND operator. In binary, 0 is 00000000 and 100 is 001100100. The & operator puts these two values into an AND gate, giving the result 00000000, which is 0.
They all say return 0 So it returns 0 If they put a variable it would return that variable
Keep it up
Explain it
You shouldn't use std as a namespace Are you really that lazy to write std::cout<<(); ?!?!
please provide explanation
1;0;=ab
Why no explanation
to add to that, true in c program is 1 so, 1<5 is true therefore prints 1.
A number xor’d by itself is always 0. It’s a common trick in x86/64 assembly to do xor eax,eax because it’s very compact and fast.
50 but gave 10 sec
1
Having an explanation on why the answer is what it is would go a long way to helping more people with the videos. As someone who doesn’t know C++, I assume the answer is 1 because 5>=5 is true making it not possible to have the rest be false? It would read as True<5 which cannot read as false? That is my best guess and I would like to know if that is correct.
None have a capital z
Because for 2 to the power to two you would need pow(2, 2) but why does that equal c i dont know
I think it's because it return 0 no matter what. Though I'm not sure I am not familiar with this language so maybe return 0 means something else
The Symbol Operator(^) is a Bitwise Exclusive or, Such that it Goes through every Bit in the Number (in this case (10) and (10) and Applies the XOR operation (1 if One or the other is Set, 0 if both or none are set) Since it is Applying over identical Bits, Then the Second case is always true Thus (10)^(10)=00 The XOR operator comes in Useful during Low Level bit manipulation or Embedded Registers and stuff like that
@@alexandre.Monge_ this is C++ (Extension Cpp, c++ or cxx depending on your system) The return in this case is a Finished State The return is there to Explicitly give back control to the Operating system, or the last Caller of this program The Value that the Return Gives is Called an Exit Code, and they are well defined, such that 0 is a Success and anything else is not C++ uses a Different way to print to the Standard Output, Which uses the std::cout member, and the insertion operator(<<) Thus, It inserts "Z= " to the output, and then it inserts the value z into the output, givin the Output of the Program to be: Z= {value Of z} Which in this case is Z= 0
@@ahuma6952 ho, i didn't know, thank you very much
@@ahuma6952 ho, i didn't know, thank you very much
Explain
That's a bitwise XOR operator.
c
c
Fantastic❤
Good ❤
Fantastic❤
One time And another time no print as it is exit control loop.
keep it up
Should print a 1 since it is the logical OR and not the bit wise OR. Bit wise should print a 10.
a value is 15
cout 15
Fantastic ❤
Let's set a couple constants in programming. true = 1 false = 0 When we convert an int to a Boolean, we check if it is more then 0. If it is, it's considered true, otherwise it's false. C++ doesn't print "true" or "false". C++ treats true and false as keywords for 0 and 1. The && returns true if both conditions are true. If any one thing is found to be false it will return false. Meaning when we evaluated 8 && 10 we were basically saying "true and true", and because both are true, it returns true, and that printed 1 because 1 is the same as true.
Fantastic❤
TCS mcqs❤
Very very good