The C language is used to process uninitialized data.

Source: Internet
Author: User

When a basic variable is declared, the system automatically writes a easily identifiable junk data in the memory as the initial data.

So,
An uninitialized int is displayed as a large negative number:-858993460.
A non-initialized char is displayed "? ", Int value is-52.
Two uninitialized strings are displayed as "hot"
An uninitialized int array, all assigned as-858993460.
An uninitialized char array is assigned the following values :"? ". The two question marks are added together. They are "hot"

 

Therefore, as long as you see the above values, you must have forgotten the initialization.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.