What is the difference between typeof(foo) and myFoo.GetType()?
Answers were Sorted based on User's Feedback
Answer / enso
Operator typeof(foo) is used to obtain the System.Type
object for a type at compile time.
myFoo.GetType() is used to obtain the exact run time type of
an object. This method uses reflection.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / nidhi
Operator typeof(foo) is used to obtain the System.Type
object for a type at compile time.
myFoo.GetType() is used to obtain the exact run time type of
an object. This method uses reflection.
| Is This Answer Correct ? | 4 Yes | 0 No |
What is information technology.
Why is c called a structured programming language?
Can a variable be both const and volatile?
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
How to write c functions that modify head pointer of a linked list?
prog for 1st five prime numbers in 2^x - 1
What is the difference between printf and scanf )?
What is sizeof int?
can we declare a function in side the structure?
What is meant by type casting?
Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.
void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?