Can an array be an Ivalue?



Can an array be an Ivalue?..

Answer / Amit Kumar Tiwari

No, in C, arrays are not considered as Ivalues (l-value), they are considered as Avalues (array values or r-value). An lvalue is a location which can appear on the left side of an assignment operator. However, you can pass an array to a function by its address, making it behave somewhat like an lvalue.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What language is lisp written in?

1 Answers  


write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


Which is the best website to learn c programming?

1 Answers  


What is struct node in c?

1 Answers  


What is double pointer?

1 Answers  


Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.

3 Answers   Google,


What are the benefits of organizational structure?

1 Answers  


Dont ansi function prototypes render lint obsolete?

1 Answers  


i want to have a program to read a string and print the frequency of each character and it should work in turbo c

3 Answers   Persistent, Wipro,


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

1 Answers  


How to declare pointer variables?

1 Answers  


Explain what does the function toupper() do?

1 Answers  


Categories