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 a pointer value and address in c?
What language is windows 1.0 written?
Write code for initializing one dimentional and two dimentional array in a C Program?
5 Answers Deshaw, Edutech, GMD,
Between macros and functions,which is better to use and why?
Why c is called a middle level language?
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above
What is extern variable in c with example?
write a program to swap two variables a=5 , b= 10 without using third variable
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
how many keywords do C compile?
7 Answers Microsoft, Practical Viva Questions,