Tutor profile: Yathansh A.
Questions
Subject: Python Programming
What does the *args does in Python?
We use *args as a parameter in the function header. It gives us the ability to pass N (variable) number of arguments in the function. For example - def Func(*args): for arg in args: print (arg) Func( 'Hello' , 'Friend' , 'Welcome' , 'to' , 'TutorMe' ) The above code will print: Hello Friend Welcome to TutorMe
Subject: C Programming
What is pointer to a pointer in C programming?
When we define a pointer to a pointer, the first pointer contains the address of the second pointer, which points to the location that contains the actual value. This is declared by putting another asterisk in front like this int **ptr; Let us understand by this code: int a = 5; int *ptr1 ; int **ptr2; ptr1 = &a; //ptr1 stores the address of a. ptr2 = &ptr1; //ptr2 stores the address of ptr1. printf("%d",*ptr1); //will print value at the address of ptr1 that is 5. printf("%d",**ptr2); //will print value at the address of ptr2 that is 5.
Subject: Algebra
If $$x^{1/3} + y^{1/3} - z^{1/3} = 0 $$ then find the value of $$(x + y - z)^{3} + 27xyz $$ .
Take the third term that is z on right hand side, we get $$ x^{1/3} + y^{1/3} = z^{1/3} $$ #eq. 1 Now cubing both sides $$ (x^{1/3} + y^{1/3})^{3} = (z^{1/3})^{3} $$. By using identity $$ (a+b)^{3} = a^{3} + b^{3} + 3ab(a+b) $$. we'll get $$ x+y + 3x^{1/3}y^{1/3}(x^{1/3} + y^{1/3}) = z $$ On shifting sides, we'll get $$ x+y-z = -3x^{1/3}y^{1/3}(x^{1/3} + y^{1/3}) $$ Again cubing both sides and putting value form #eq. 1, we get $$(x+y-z)^{3} = -27xyz$$. Shifting again we'll get our answer as $$(x+y-z)^{3} +27xyz=0$$. Hence, the answer is zero.
Contact tutor
needs and Yathansh will reply soon.