What is the default value of CHAR type?

Answer Posted / yash

The default value of a variable of value type is the value
assigned in the default constructor. For simple types this
value corresponds to a bit pattern of all zeros:
• For integer types, the default value is 0
• For char, the default value is `\u0000' //Unicode
• For float, the default value is 0.0f
• For double, the default value is 0.0d
• For decimal, the default value is 0.0m
• For bool, the default value is false

Is This Answer Correct ?    26 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the source of constraints?

509


How to include text values in sql statements?

592


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

1968


What is a join in sql?

590


What is partition, how will you implement it? : sql server analysis services, ssas

605






Differentiate between delete and truncate.

578


What is the full meaning of dml?

531


What is bcp? When does it used?

550


how you can list all the tables in a database?

526


What are ddl (data definition language) statements for tables in ms sql server?

546


Explain the difference between primary keys and foreign keys?

513


How do I view a stored procedure in sql server query?

540


When you use @@error and try-catch?

576


What is the bookmark lookup and rid lookup?

578


What is query optimizer in sql server?

552