ในขณะที่ผู้เขียนเริ่มต้นศึกษาเกี่ยวกับ microcontroller STM32 ก็ได้พบกับการเขียน code ที่ไม่เคยเจอ แต่อาจจะเป็นที่คุ้ยเคยหรือเข้าใจง่ายสำหรับใครหลายคน
ตัวอย่าง
1ul << 5
1ul นั้นเป็นการตัวแปร unsigned long โดยมีค่าเท่ากับ 1 คือ 00000000000000000000000000000001
1ul << 5 คือการ shift ค่า 1ul ไป 5 bit ผลลัพท์ จะได้ 00000000000000000000000000100000
Post Top Ad
Responsive Ads Here
Post Bottom Ad
Responsive Ads Here
Author Details
Templatesyard is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates which are professionally designed and perfectlly seo optimized to deliver best result for your blog.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น