Modify Operators | C Technical Interview Questions and Answers | Mr. Srinivas

preview_player
Показать описание
Modify Operators | C Technical Interview Questions and Answers | Mr. Srinivas

Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.

💡 Visit Our Websites

#Clanguage #Programming #Tutorials #Course #Training
--------------------------

💡 About NareshIT:

"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations

--------------------------

💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.

--------------------------

💡 Please write back to us at

--------------------------

💡 Check The Below Links

Рекомендации по теме
Комментарии
Автор

Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: @t

NareshIT
Автор

thanks a lot sir...please upload more...

tapanjeetroy
Автор

I have read most of the comments below. Even the most experienced programmer can make mistakes here because of compiler dependencies. The key to bug-free programming is making the code simple. Fancy coding questions may be good for interviews but in practice avoid all complicated and ambiguous expressions.

balakrishnad
Автор

sir ... in C++ we will get different output ?

tmk
Автор

if you execute this code with GCC compiler it will show you 14 but with CLAng compiler I may show you 13.

SivaKumar-mmng
Автор

why modify operator is different from compiler to compiler.
when I run this programme in mingw compiler I get a = 14.
But when I execute, a=5;
a=++a + ++a + ++a + ++a;
I get a=31.
Sir, according to your lecture the result should have become 36.
you have said pre-increment and pre-decrement works then only substitute and evaluation.

mohammadsujon
Автор

The output is compiler dependent right

bsr
Автор

Sir, in the 17th video the output is 13 but not 14 because the ++a value is 6 and a++ value is 7

akshayhegde
Автор

Hi Naresh, Awesome explanation!!
But what would be the output of (++a + a++) and why?
Also, please help solve the following question with explanation:
int i = 1;
printf("%d%d%d", ++i, i++, i);

thanks in advance!

khushboogangal
Автор

#include <stdio.h>

int main()
{
int a=10;
int c = ++a + a++;
printf("a=%d\nc=%d", a, c);
}
sir it output is
a=12
c=23
but by solving manual i got ans a=12 c=22
so how the prgrm execute plz explan sir?

itse
Автор

Int a=1, b;
b =a++ + a++;
Aapke method se answer wrong aa rha hai sir. B=2 and a = 3

sarvprathaminstitue
Автор

Wrong answer.
*Rule: when a variable gets more than one time increment or decrement in a single statement than the result will be compiler dependent

fasahatraza