Go through the following code sinippet
char a[20];
a="Hello Orcale Test";
will this compile?
Answer Posted / jaisai
No...
Compile time error will occur says
"left operand must be l-value"
alternatively
char *a;
a="Hello Orcale Test";
will compile....
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between the local variable and global variable in c?
what is a function method?give example?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What is null pointer constant?
Is fortran still used today?
Difference between macros and inline functions? Can a function be forced as inline?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Which one would you prefer - a macro or a function?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
ATM machine and railway reservation class/object diagram
Can a pointer be null?
What are identifiers in c?
When should the register modifier be used? Does it really help?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
What is c programing language?