Ma'am hats off to ur knowledge, i m ur student from last one year and very glad nd thankful for everything u taught us....thank you so much from the depth of my heart....🙏🏿🙏🏿🙏🏿🙏🏿
Let's break down the expression and the code to understand the values of `a` and `b`. ### Code Analysis: ```c int b, a = 2; b = (a++, ++a, a >> 2); printf("%d ", a); printf("%d", b); ``` 1. **Initialization**: ```c int b, a = 2; ``` Here, `a` is initialized to 2, and `b` is declared but not initialized yet. 2. **The comma operator**: The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`. So let's evaluate the comma operator step by step:
- **`a++`**: This increments `a` after its current value is used. So, in this case: - `a` is initially 2. - `a++` uses the value 2 but increments `a` to 3. - **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4. - **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`). **So, `b = 1` because `a >> 2` results in 1**. 3. **Final value of `a`**: After the comma expression, `a` is left as `4`. 4. **`printf()` statements**: - `printf("%d ", a);` will print the value of `a`, which is `4`. - `printf("%d", b);` will print the value of `b`, which is `1`. ### Summary: - **The value of `a`** is `4`. - **The value of `b`** is `1`. ### Output: ``` 4 1 ```
10:02 int a; a = printf ("Jenny"),2,3,4; Ans: Jenny 2 Because initialisation is already done in first step and after printf and comma is used so it doesn't show error
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
Let's break down the expression and the code to understand the values of `a` and `b`. ### Code Analysis: ```c int b, a = 2; b = (a++, ++a, a >> 2); printf("%d ", a); printf("%d", b); ``` 1. **Initialization**: ```c int b, a = 2; ``` Here, `a` is initialized to 2, and `b` is declared but not initialized yet. 2. **The comma operator**: The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`. So let's evaluate the comma operator step by step:
- **`a++`**: This increments `a` after its current value is used. So, in this case: - `a` is initially 2. - `a++` uses the value 2 but increments `a` to 3. - **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4. - **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`). **So, `b = 1` because `a >> 2` results in 1**. 3. **Final value of `a`**: After the comma expression, `a` is left as `4`. 4. **`printf()` statements**: - `printf("%d ", a);` will print the value of `a`, which is `4`. - `printf("%d", b);` will print the value of `b`, which is `1`. ### Summary: - **The value of `a`** is `4`. - **The value of `b`** is `1`. ### Output: ``` 4 1 ```
Ma'am I like ur video very much the English language you used is very easy and understandale to me mam you are awesome👏✊👍 mam from where you did your graduation? Which books you studied and please also reccomend us book
#include int main() { int a; a=printf("jenny"),2,3; printf("%d",a); return 0; } /*output : jenny5 Mam here I got jenny along with 5 I think we are using format specifier %d and data type int...so it give the length of the string */
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@@rohithsai9046 We have a=8, b. Q. b=(a++,++a,a>>2); As per video b will take value of last operant i.e a>>2 but first two operant will evaluate from left to right. First a++. a become 9 Then ++a. a become 10 in a>>2 We use shortcut like If >> operater is used divide (/) value a with given value 2²=4 If these operater square the value of given number). In our case >> this operater is used so b= (10/2²) b= 10/4 b= 2 b gets value 2 because we are using int as our datatype, *If we use float then b value change to 2.5. (We can't use float if we are using bit/shift operators)
you have solved my doub't... i'm gathering here and there for the answer but didn't get int a= (2,7,9) o/p = 9....*but finally i got my answer.. thank you mam*
Mam ur DS playlist really helped me a lot for exam prep... please make a playlist for Computer architecture also mam... the subject sounds so vague pl help mam... 🙏🙂
Ma'am I had a doubt..!??? b=(a++, ++a, a>>2); in this equation b=2 is the answer...!! But the value stored in the A change in each stage. a++ = 9 ++a = 10 a>>2 = 2 So my doubt is the new value stored in the A=2, so I think it couldnt be 10. So the value be B=2 , A=2 Plzz give reply....
Let's break down the expression and the code to understand the values of `a` and `b`. ### Code Analysis: ```c int b, a = 2; b = (a++, ++a, a >> 2); printf("%d ", a); printf("%d", b); ``` 1. **Initialization**: ```c int b, a = 2; ``` Here, `a` is initialized to 2, and `b` is declared but not initialized yet. 2. **The comma operator**: The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`. So let's evaluate the comma operator step by step:
- **`a++`**: This increments `a` after its current value is used. So, in this case: - `a` is initially 2. - `a++` uses the value 2 but increments `a` to 3. - **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4. - **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`). **So, `b = 1` because `a >> 2` results in 1**. 3. **Final value of `a`**: After the comma expression, `a` is left as `4`. 4. **`printf()` statements**: - `printf("%d ", a);` will print the value of `a`, which is `4`. - `printf("%d", b);` will print the value of `b`, which is `1`. ### Summary: - **The value of `a`** is `4`. - **The value of `b`** is `1`. ### Output: ``` 4 1 ```
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@@leaderrr_shivam For a it will be 10 because it works with each value but for b it will be only 8 because it works only with last value and after shifting right it will become 2 . For a:- int = 8; a++ = 9; ++a = 10; For b:- int a = 8; in binary it means 00001000 And a >> 2 means that we'll eliminate the first 2 bits and then it will be 00000010 = 2 in decimal ✅👌
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@@leaderrr_shivam lets take the question: int a = 8, b; 1.b = (a++, ++a, a>>2) solution; here the comma acts as an operator and its associativity is from left to right: therefore from the question a= 8; a++ is a post increment operator (i.e the original value of a ( which is 8) will be executed and after execution it will increase to 9. ++a is a pre increment operator so the value of a(which is now 9 from post increment) will be increased to 10 during execution; a >> 2 = 10 >> 2; = 2.5 but remember the a is an integer so only the value 2 will be printed, hence a >> 2 = 2; i hope this explanation helps;
int a = printf("jenny"), 2, 3, 4 Solution: Here, It is an error, but [printf("Jenny")] will still be executed, which results in the output of [jenny5], because the world [Jenny] has 5 characters... So output will be [Jenny5] Thank you ma'am
int a=printf("jenny"),2,3,4; output=> Error because in initialization without bracket, it acts as separator b=(a++,++a,a>>2); output=> 2 ; a has 10, b has 2
@@muhammedibrahim5421Because the variable 'a' is of integer type, it will store an integer that represents the number of characters it has printed. Jenny has 5 characters
Dear Ma'am need your help for data analytics, If the video has already been made by you, i will appreciate if you can share the link with me or please advice the schedule once you plan to upload the tutorial video. Furthermore, requesting you to please complete the DAA tutorial playlist. Looking forward for your guidance Thanks!
Hello mam,i am 1st yr cse student at nit warangal. Mam, i have 2 yr gap bewtween 12th and start of btech. 1yr complete drop and 1 yr partial drop from nit jalandhar mechanical. Mam, how will it affect my placement? Pls help🙏🙏
Excuse me mam in ur channel, there is programming,DAA,DBMS,data structure,and algorithms,dynamic programming,os, which is priority to watch first and to learn...??
#include void main() { printf(" %d %d %d",printf("A"),printf("BB"),printf("CCC")); } OUTPUT CCCBBA 1 2 3 Madam, can you please explain why the printf statements are executed from right to left. But when I write the following code #include void main() { if(printf("A"),printf("BB"),printf("CCC")) ; } Output is "ABBCCC". I am not understanding.
@@vineethkumar9841 I checked, and the GCC compiler gives error. when same variable is initialized using comma. Only different variables can be initialized
If you write like this int a = 5,4; printf("%d",a) It will give error but if you declare first and then to use for example int a ,b; a = 5,4 it will output 5
@@rohithsai9046 b = (a++,++a,a>>2) At a++ , a will be 9 At ++a , a will be 10 At a>>2 , 10/2^2 = 10/4 which will be 2.5 but only 2 will be returned So a=10 and b=2
in equation int a=8,b; b=a++,++a; mam you said first assignment operator works bur we know that pre increment(++a) priority or precedence is high so why assignment operator works first
Ma'am hats off to ur knowledge, i m ur student from last one year and very glad nd thankful for everything u taught us....thank you so much from the depth of my heart....🙏🏿🙏🏿🙏🏿🙏🏿
Thanks a lot This is the best videos on operators I have seen ever.
Answer is 2
for b=(a++,++a,a>>2)
@@0xDEAD-C0DE Ask the same thing in the interview too when encountered a que
Let's break down the expression and the code to understand the values of `a` and `b`.
### Code Analysis:
```c
int b, a = 2;
b = (a++, ++a, a >> 2);
printf("%d
", a);
printf("%d", b);
```
1. **Initialization**:
```c
int b, a = 2;
```
Here, `a` is initialized to 2, and `b` is declared but not initialized yet.
2. **The comma operator**:
The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`.
So let's evaluate the comma operator step by step:
- **`a++`**: This increments `a` after its current value is used. So, in this case:
- `a` is initially 2.
- `a++` uses the value 2 but increments `a` to 3.
- **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4.
- **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`).
**So, `b = 1` because `a >> 2` results in 1**.
3. **Final value of `a`**:
After the comma expression, `a` is left as `4`.
4. **`printf()` statements**:
- `printf("%d
", a);` will print the value of `a`, which is `4`.
- `printf("%d", b);` will print the value of `b`, which is `1`.
### Summary:
- **The value of `a`** is `4`.
- **The value of `b`** is `1`.
### Output:
```
4
1
```
(a++, ++a, a>>2); == 2 because first value will be avoided and last value will be stored in the computer memory.
Yeah I also got the same answer😃
yess
@@richieabbugamingff498 same ans?!!🙃
And what about the value of a ? Will it be 2 or 10?
@@yakuzaoyabun5640 2
value of a=10, value of b=2 ;, by following the right shift shortcut mathod
12:49
a = 2
b = 2
a = 2 because the value of a will also be updated to 2
kindly Request . To Pls Make Videos on Python As soon as possible mam ❤️ . Because we are Addicted to u 🙏☺️
👍
11:48 jenny5 (output) since word jenny has five letters ,so the output is jenny5.
10:02
int a;
a = printf ("Jenny"),2,3,4;
Ans: Jenny
2
Because initialisation is already done in first step and after printf and comma is used so it doesn't show error
But it assign the the value 4 thre is two more comma
But why I am getting Jenny as output 4 is not printed in the output 😢
10:05 it will give error
12:25 it will give a=10 and b=2 because b is 2.5 but as we are writing integer, so float value will be neglected
a=2 not 10 if I am wrong then explain me
No at 10:05 it prints..... Jenny
4
It doesn't give error
The explanations are really good!
10:07 Jenny
12:26 #include
int main()
{
int a=8,b;
b=(a++,++a,a>>2);
printf("%d %d",a,b);
return 0;
}
output: 10 2
Yr teaching style is Awesome mam❤
int a = 8; in binary it means 00001000
And a >> 2 means that we'll eliminate the first 2 bits and then it will be 00000010 = 2 in decimal ✅👌
answer is 3
Mam I got a=10,b=2 12:27
b=(a++,++a,a>>2)
Output =2
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
b=(a++,++a,a>>2)
the Answer will be 2.
mam you are good teacher thnks for your healping.
Let's break down the expression and the code to understand the values of `a` and `b`.
### Code Analysis:
```c
int b, a = 2;
b = (a++, ++a, a >> 2);
printf("%d
", a);
printf("%d", b);
```
1. **Initialization**:
```c
int b, a = 2;
```
Here, `a` is initialized to 2, and `b` is declared but not initialized yet.
2. **The comma operator**:
The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`.
So let's evaluate the comma operator step by step:
- **`a++`**: This increments `a` after its current value is used. So, in this case:
- `a` is initially 2.
- `a++` uses the value 2 but increments `a` to 3.
- **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4.
- **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`).
**So, `b = 1` because `a >> 2` results in 1**.
3. **Final value of `a`**:
After the comma expression, `a` is left as `4`.
4. **`printf()` statements**:
- `printf("%d
", a);` will print the value of `a`, which is `4`.
- `printf("%d", b);` will print the value of `b`, which is `1`.
### Summary:
- **The value of `a`** is `4`.
- **The value of `b`** is `1`.
### Output:
```
4
1
```
Ma'am I like ur video very much the English language you used is very easy and understandale to me mam you are awesome👏✊👍 mam from where you did your graduation?
Which books you studied and please also reccomend us book
madam thanks i cleared my concept..,post and pre for inc and dec..
#include
int main()
{ int a;
a=printf("jenny"),2,3;
printf("%d",a);
return 0;
}
/*output : jenny5
Mam here I got jenny along with 5 I think we are using format specifier %d and data type int...so it give the length of the string */
Bro, for me its coming like "code has no effect "
put bracket for a=(print("jenny),2);
Yeah,if we don't use printf("%d",a) ,we will get the output as jenny
Outstanding ...from pakistan
12:10 how a++ becomes 9 ?
It is a post increment na so 8 should be assigned na 🤔🤔
For a=8
b=(a++,++a,a>>2)
b=a++,++a
Output is b=2
a=10
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
❣❣❣explained in easy way❣❣
Nice explanation thanks mam 🙏🙏
a=10
b=2
a value doesn't change,
b value will be a/2²
=10/4
=2
can you explain in detail please😕
@@rohithsai9046
We have a=8, b.
Q. b=(a++,++a,a>>2);
As per video b will take value of last operant i.e a>>2
but first two operant will evaluate from left to right.
First a++. a become 9
Then ++a. a become 10
in a>>2
We use shortcut like
If >> operater is used divide (/) value a with given value 2²=4
If these operater square the value of given number).
In our case >> this operater is used so
b= (10/2²)
b= 10/4
b= 2
b gets value 2 because we are using int as our datatype,
*If we use float then b value change to 2.5.
(We can't use float if we are using bit/shift operators)
@@sankalpphadke4938 hi sir
I agree with answer
But can you tell me which has more precedence ++ or >>
@@akhilsugaraju3905 ++
you have solved my doub't... i'm gathering here and there for the answer but didn't get
int a= (2,7,9) o/p = 9....*but finally i got my answer.. thank you mam*
13:56 value of a is 10 and b is 2
Tq mam have a great job
Sbse phle hmne dekha aur seekha
If we print a value also then
Output :
Jenny
5
As there are 5 letters are their in word "Jenny"
Output : Jenny5
14:11 output is a=10,b=2
If i can take you to the moon and stars i should have done that 🙂, thanks mam, you made it easy for us.
Mam ur DS playlist really helped me a lot for exam prep... please make a playlist for Computer architecture also mam... the subject sounds so vague pl help mam... 🙏🙂
Yes mam
Thank you mam for your kind information for c programming tutorials thanks a lot mam
Ma'am I had a doubt..!???
b=(a++, ++a, a>>2); in this equation
b=2 is the answer...!! But the value stored in the A change in each stage.
a++ = 9
++a = 10
a>>2 = 2
So my doubt is the new value stored in the A=2, so I think it couldnt be 10.
So the value be
B=2 , A=2
Plzz give reply....
Let's break down the expression and the code to understand the values of `a` and `b`.
### Code Analysis:
```c
int b, a = 2;
b = (a++, ++a, a >> 2);
printf("%d
", a);
printf("%d", b);
```
1. **Initialization**:
```c
int b, a = 2;
```
Here, `a` is initialized to 2, and `b` is declared but not initialized yet.
2. **The comma operator**:
The comma operator `(a++, ++a, a >> 2)` evaluates each expression from left to right, but only the **rightmost expression** (`a >> 2`) is the value assigned to `b`.
So let's evaluate the comma operator step by step:
- **`a++`**: This increments `a` after its current value is used. So, in this case:
- `a` is initially 2.
- `a++` uses the value 2 but increments `a` to 3.
- **`++a`**: This increments `a` before using its value. After `a++`, `a` was already incremented to 3, so now `++a` increments `a` to 4.
- **`a >> 2`**: After the previous two operations, `a` is now 4. The expression `a >> 2` means a bitwise right shift of `a` by 2 positions. Shifting 4 (binary `100`) right by 2 positions gives `1` (binary `001`).
**So, `b = 1` because `a >> 2` results in 1**.
3. **Final value of `a`**:
After the comma expression, `a` is left as `4`.
4. **`printf()` statements**:
- `printf("%d
", a);` will print the value of `a`, which is `4`.
- `printf("%d", b);` will print the value of `b`, which is `1`.
### Summary:
- **The value of `a`** is `4`.
- **The value of `b`** is `1`.
### Output:
```
4
1
```
a,b=2 , as ++ is having more presedence then >> , the number would be 10, in binary 1010 >>2= 10 (i.e 2)
b=(a++,++a, a>>2)
a=10 and b=2
hi
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
11:45 output is Jenny
😂😂
a = 4
b = 2
Right answer !
11:43 it counts letters
So there are 5 letters in jenny then
O/P is:-
Jenny5
Is it right?
same output is coming
Is that an error?? Jenny is not an integer... So how???
Mam please make video on recursion . It will really help in understanding ds
Answer is 2.
For b=(a++,++a,a>>2)
Mam for b=(a++,++a,a>>2);
The value of b=2
The value of a=10
Thank you mam
No, a also updates it's value as a>>2
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@@leaderrr_shivam
For a it will be 10 because it works with each value but for b it will be only 8 because it works only with last value and after shifting right it will become 2 .
For a:-
int = 8;
a++ = 9;
++a = 10;
For b:-
int a = 8; in binary it means 00001000
And a >> 2 means that we'll eliminate the first 2 bits and then it will be 00000010 = 2 in decimal ✅👌
09:58 mam the right answer in 4
a = 10;
b = 2;
printf("Thanks jenny");
why the value of a is 10. please tell me because after evaluating a>>2 expression it's value is 2 i.e., is returned to b. so, a value will also be 2 only. why it is 10? please answer me.
@@leaderrr_shivam lets take the question:
int a = 8, b;
1.b = (a++, ++a, a>>2)
solution;
here the comma acts as an operator and its associativity is from left to right:
therefore from the question a= 8;
a++ is a post increment operator (i.e the original value of a ( which is 8) will be executed and after execution it will increase to 9.
++a is a pre increment operator so the value of a(which is now 9 from post increment) will be increased to 10 during execution;
a >> 2 = 10 >> 2; = 2.5 but remember the a is an integer so only the value 2 will be printed,
hence a >> 2 = 2;
i hope this explanation helps;
@@devSackey okay bro. thanks
@@leaderrr_shivam Always welcome bro
First 😍
Thank you so much Ms Jenny ☺️❤️
Thanks a Lot Mam
int a = printf("jenny"), 2, 3, 4
Solution:
Here, It is an error, but [printf("Jenny")] will still be executed, which results in the output of [jenny5], because the world [Jenny] has 5 characters... So output will be [Jenny5]
Thank you ma'am
where did the 5 came from???
@@makrynub9256its the number of character used inside the printf function printf("Jenny")
@@dianawanguiw3669why it will be printed... I think only "jenny" will be printed 😐there's nothing to give the character count.. 😐
b = 2 finall result ma'am. Since a++ and ++a will be operated and rejected then the a>>2 will be assigned to be,
Iam going to follow u mam
int a=printf("jenny"),2,3,4; output=> Error because in initialization without bracket, it acts as separator
b=(a++,++a,a>>2); output=> 2 ; a has 10, b has 2
Sir You have a youtube channel right
Please upload your doughts in c program and also what you written
Its not showing error
Hlw, in mam question it is not assigned with character so output will be only jenny
It will print Jenny
11:40
output is - jenny 2
jenny didi please like if o/p is right.
Thank you ma'am ❤️❤️.
Waiting for next video ,mam
14:00 ans a=2 b=2
Mam please 🙏 complete the playlist of DAA as soon as possible
🙏🙏🙏🙏🙏🙏🙏
I like your teaching syle, now falling love to u🤘
😍🤘🤘🤘
th-cam.com/video/N9Vip-uWyQQ/w-d-xo.html
11:38 output will be
Jenny5
5 q hoga?
why not just jenny without the '5'
@@muhammedibrahim5421Because the variable 'a' is of integer type, it will store an integer that represents the number of characters it has printed. Jenny has 5 characters
When int a=(5,4);
Output will be 4, then why to put 5 in the first place? What's the use of it?
a = printf( "jenny" ),2,3,4;
Answer a= 4
Mam at -8:23 Jenny
4
14:02
a=10
b=2
11:43 error duh
Dear Mam good Morning, i have executed the statement :
Mam please do make a video on functions in c
Main{
int a=0,b=0;
a=(b=75)+9;
printf("%d,%d",a,b)
}
Can you explain above what output we will get
Dear Ma'am need your help for data analytics, If the video has already been made by you, i will appreciate if you can share the link with me or please advice the schedule once you plan to upload the tutorial video. Furthermore, requesting you to please complete the DAA tutorial playlist.
Looking forward for your guidance
Thanks!
Wishing happy New year & G B Y TO TEACHER
Thanks and congrats...Mdm Teacher
Thanks for your English conversation
int a;
a = jenny , 2 ,3 ,4;
a = jenny;
Because without brackets we get the first value
Ma'am pls object oriented programming k upar v video banaiyi 🙏🙏🙏
Please ma'am
Hello mam,i am 1st yr cse student at nit warangal. Mam, i have 2 yr gap bewtween 12th and start of btech. 1yr complete drop and 1 yr partial drop from nit jalandhar mechanical. Mam, how will it affect my placement? Pls help🙏🙏
yes but don't loose hope ....all the best for your future
10:10 output will be jenny 5
11:30
a =printf("Jenny
"),2,3,4;
mam out of this is showing 6.
How i didnt understand.
Ma'am ans of a=printf("Jenny"),2,3,4;
Will be Jenny234. & Ans of b=(a++,++a, a>>2) will be 2
How sir it will b Jenny234
I think only jenny will b op
a =10
b=2
14:00
Hi,
You initially said that first operand i.e. 5 will be rejected and second operand 4 will be returned. But then again you said 5 will be printed.
Got the doubt cleared. Thanks for the explanation.
th-cam.com/video/N9Vip-uWyQQ/w-d-xo.html
I also get this confusion?
I think she's meaning when there''s a brackets then will return rightmost value but if there are not brackets left value will be return
a = printf("Jenny"), 2,3,4;
Answer is Jenny
b = (a++, ++a, a>>2);
value assigned to b will be a>>2 which in the end is 2, value of a is 10
Answer is jenny5
Excuse me mam in ur channel, there is programming,DAA,DBMS,data structure,and algorithms,dynamic programming,os, which is priority to watch first and to learn...??
Mam please start c++ language after c mam🙏🙏🙏 btw happy New year 🎉🎉🎉
mam plzz make lectures in hindi too i learn fast with hindi explaination
#include
void main()
{
printf("
%d %d %d",printf("A"),printf("BB"),printf("CCC"));
}
OUTPUT
CCCBBA
1 2 3
Madam, can you please explain why the printf statements are executed from right to left. But when I write the following code
#include
void main()
{
if(printf("A"),printf("BB"),printf("CCC"))
;
}
Output is "ABBCCC".
I am not understanding.
10:05 why is my output like the below mentioned way
Jenny
6
Upload the next lecture also mam...
Printf ("Chetan")2,3,4;
Value will be 6
how its evaluating the string like that ???
if a = 5,4 then compiler doesnot give error but takes it as a=4.
No bro it will take a as a=5,,, can u check once's
@@vineethkumar9841 I checked, and the GCC compiler gives error. when same variable is initialized using comma. Only different variables can be initialized
if you're writing it like this int a = 5,4; it will get error
but like these int a = (5,4); ✅
int a;
a = 5,4; ✅
It won't give you any errors
@@Liam-10 Yes, using brackets don't give error that's because brackets have highest precedence than comma.
If you write like this int a = 5,4;
printf("%d",a) It will give error but if you declare first and then to use for example int a ,b;
a = 5,4 it will output 5
Output :
a=10
b=2
hey, can you explain a bit please🥺
@@rohithsai9046 b = (a++,++a,a>>2)
At a++ , a will be 9
At ++a , a will be 10
At a>>2 , 10/2^2 = 10/4 which will be 2.5 but only 2 will be returned
So a=10 and b=2
11:45
output is jenny
No it will be jenny5
thanks 💛💛💛
Mam will u give the notes. keep that notes pdf in description pls 🙏
Please do vedios on python programming please 🙏🙏🙏🙏
Very good 👍
in equation
int a=8,b;
b=a++,++a;
mam you said first assignment operator works bur we know that pre increment(++a) priority or precedence is high so why assignment operator works first
Assignment operator is higher priority compaire to pre increment (++a).
14:05 a = 2
a=10,b=2 i get mam..tq mam
How did you slove?
14:10 b=2 a=10
very nice ma'am 😊
a=2
b=2
Results
Mam, when will come lecture of statement and looping?