Question:
Dim x, y as integer. What is x and y data type?
Answer:
X as variant and y as integer. Source: CoolInterview.com
x is variant datatype and y is integer datatype. Source: CoolInterview.com
Answered by: Radha Krishna Murthy B | Date:
| Contact Radha Krishna Murthy B
I think x,y interger it both x and y veriables are interger datatype because we can give multi variable in single datatype in any language. Source: CoolInterview.com
Answered by: Nirav | Date: 1/30/2009
| Contact Nirav
Both are integer type and they can vary in the size Source: CoolInterview.com
Answered by: SK | Date: 5/3/2009
| Contact SK
x is varient and y is int Source: CoolInterview.com
Answered by: kumar | Date: 6/26/2009
| Contact kumar
that is another way of declaring the variable. where x and y are of integer data type. you can also declare like dim x as integer dim y sa integer or dim x,y as integer or dim x as integer,dim y as integer Source: CoolInterview.com
Answered by: jaywant | Date: 10/10/2009
| Contact jaywant
no,in vb u cant define smthin like int x,y
u have 2 define it as int x; int y; Source: CoolInterview.com
Answered by: shoaib | Date: 12/10/2009
| Contact shoaib
x is varient and y is int no confusion in that Source: CoolInterview.com
Answered by: chandrakant | Date: 6/23/2010
| Contact chandrakant
here x is variant because we have to declare only y data type in vb it must be declare for both like: dim x as integer; dim y as integer; OR dim x as integer,y as integer a person who said we can declare multiple variable like another language is stupid....if he dont know how he can post it Source: CoolInterview.com
Answered by: bhagwati lal paliwal(rajsamand) | Date: 7/7/2010
| Contact bhagwati lal paliwal(rajsamand)
X and Y both are Integer Type because with comma separated whatever variables you declared, the data type remain as that comes after AS. Source: CoolInterview.com
Answered by: Mangesh | Date: 7/12/2010
| Contact Mangesh
Both are integer data type because both are declare in single declaration medium.. Source: CoolInterview.com
Answered by: saravana kumar | Date: 8/4/2010
| Contact saravana kumar
Answer can be verified,
Dim x,y as integer x="a" y="a"
No error occurs when x is assigned value, Error occurs when y is assigned value Which means that y is Integer data Type and x is a variant type. Source: CoolInterview.com
Answered by: Saad Shakeel | Date: 9/8/2010
| Contact Saad Shakeel
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|