{"id":8160,"date":"2023-10-24T21:26:01","date_gmt":"2023-10-24T14:26:01","guid":{"rendered":"https:\/\/teky.edu.vn\/blog\/?p=8160"},"modified":"2023-10-29T15:44:35","modified_gmt":"2023-10-29T08:44:35","slug":"con-tro-trong-c","status":"publish","type":"post","link":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/","title":{"rendered":"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n"},"content":{"rendered":"\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-top\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;8160&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;33&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;3.7&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;3.7\\\/5 - (33 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n&quot;,&quot;width&quot;:&quot;104.8&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 104.8px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            3.7\/5 - (33 b\u00ecnh ch\u1ecdn)    <\/div>\n    <\/div>\n<p style=\"text-align: justify;\"><em><strong>Con tr\u1ecf trong C<\/strong> l\u00e0 m\u1ed9t kh\u00e1i ni\u1ec7m r\u1ea5t quen thu\u1ed9c \u0111\u1ed1i v\u1edbi c\u00e1c nh\u00e0 l\u1eadp tr\u00ecnh vi\u00ean. Tuy c\u01a1 b\u1ea3n nh\u01b0ng l\u0129nh v\u1ef1c ki\u1ebfn th\u1ee9c m\u00e0 con tr\u1ecf trong C++ li\u00ean quan l\u00e0 r\u1ea5t r\u1ed9ng. Ng\u01b0\u1eddi d\u00f9ng c\u1ea7n n\u1eafm v\u1eefng nh\u1eefng th\u00f4ng tin quan tr\u1ecdng n\u00e0y \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng m\u1ed9t c\u00e1ch nhu\u1ea7n nhuy\u1ec5n con tr\u1ecf C. B\u00e0i vi\u1ebft sau s\u1ebd \u0111\u1ec1 c\u1eadp \u0111\u1ebfn kh\u00e1i ni\u1ec7m c\u1ee7a con tr\u1ecf C, c\u00e1ch s\u1eed d\u1ee5ng v\u00e0 bi\u1ec3u di\u1ec5n n\u00f3 trong ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh nh\u01b0 th\u1ebf n\u00e0o. H\u00e3y theo d\u00f5i ngay!<\/em><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">N\u1ed9i dung <\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Tim_hieu_dia_chi_o_nho_trong_C\" >T\u00ecm hi\u1ec3u \u0111\u1ecba ch\u1ec9 \u00f4 nh\u1edb trong C<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Con_tro_trong_C_la_gi\" >Con tr\u1ecf trong C l\u00e0 g\u00ec?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Nhung_noi_dung_lien_quan_den_con_tro_C\" >Nh\u1eefng n\u1ed9i dung li\u00ean quan \u0111\u1ebfn con tr\u1ecf C++<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Cach_khai_bao_con_tro\" >C\u00e1ch khai b\u00e1o con tr\u1ecf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Gan_dia_chi_vao_con_tro_trong_C\" >G\u00e1n \u0111\u1ecba ch\u1ec9 v\u00e0o con tr\u1ecf trong C<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Moi_quan_he_giua_con_tro_va_mang_dong_trong_C\" >M\u1ed1i quan h\u1ec7 gi\u1eefa con tr\u1ecf v\u00e0 m\u1ea3ng \u0111\u1ed9ng trong C++<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Ket_luan\" >K\u1ebft lu\u1eadn<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Thong_tin_co_ban_ve_Hoc_vien_chuyen_dao_tao_cong_nghe_va_lap_trinh_%E2%80%93_Teky\" >Th\u00f4ng tin c\u01a1 b\u1ea3n v\u1ec1 H\u1ecdc vi\u1ec7n chuy\u00ean \u0111\u00e0o t\u1ea1o c\u00f4ng ngh\u1ec7 v\u00e0 l\u1eadp tr\u00ecnh &#8211; Teky\u00a0<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Day_la_chuong_trinh_khong_chi_trang_bi_kien_thuc_lap_trinh_ma_con_ren_luyen_nhom_ky_nang_4Cs_Tre_se_duoc\" >\u0110\u00e2y l\u00e0 ch\u01b0\u01a1ng tr\u00ecnh kh\u00f4ng ch\u1ec9 trang b\u1ecb ki\u1ebfn th\u1ee9c l\u1eadp tr\u00ecnh m\u00e0 c\u00f2n r\u00e8n luy\u1ec7n nh\u00f3m k\u1ef9 n\u0103ng 4Cs. Tr\u1ebb s\u1ebd \u0111\u01b0\u1ee3c:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#Lien_he_ngay_hoc_vien_cong_nghe_sang_tao_TEKY_de_duoc_tu_van_khoa_hoc\" >Li\u00ean h\u1ec7 ngay h\u1ecdc vi\u1ec7n c\u00f4ng ngh\u1ec7 s\u00e1ng t\u1ea1o TEKY \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n kh\u00f3a h\u1ecdc:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Tim_hieu_dia_chi_o_nho_trong_C\"><\/span>T\u00ecm hi\u1ec3u \u0111\u1ecba ch\u1ec9 \u00f4 nh\u1edb trong C<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Tr\u01b0\u1edbc khi t\u00ecm hi\u1ec3u kh\u00e1i ni\u1ec7m con tr\u1ecf trong C, ta s\u1ebd \u0111i\u1ec3m qua m\u1ed9t v\u00e0i th\u00f4ng tin c\u1ee7a \u0111\u1ecba ch\u1ec9 bi\u1ebfn nh\u1edb tr\u01b0\u1edbc. \u0110\u1ea7u ti\u00ean ta s\u1ebd nh\u00ecn qua v\u00ed d\u1ee5 sau:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int number;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">printf(&#8220;\\nNhap number = &#8220;);<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">scanf(&#8220;%d&#8221;, &amp;number);<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">printf(&#8220;\\nnumber = %d&#8221;, number);<\/span><\/p>\n<p style=\"text-align: justify;\">B\u1ea1n c\u00f3 th\u1ec3 th\u1ea5y r\u1eb1ng khi d\u00f9ng h\u00e0m scanf, \u0111\u1ec3 truy\u1ec1n bi\u1ebfn number ta c\u1ea7n d\u00f9ng d\u1ea5u &amp;. C\u00f2n \u0111\u1ed1i v\u1edbi h\u00e0m printf th\u00ec l\u1ea1i kh\u00f4ng c\u1ea7n. L\u00fd do \u1edf \u0111\u00e2y l\u00e0 g\u00ec? C\u00e2u tr\u1ea3 l\u1eddi l\u00e0 v\u00ec scanf c\u1ea7n gi\u00e1 tr\u1ecb c\u1ee7a bi\u1ebfn, v\u00ec th\u1ebf d\u1ea5u &amp; s\u1ebd gi\u00fap n\u00f3 \u0111\u1ecbnh v\u1ecb \u0111\u01b0\u1ee3c \u0111\u1ecba ch\u1ec9 c\u1ee7a bi\u1ebfn \u0111\u00f3.<\/p>\n<figure id=\"attachment_8162\" aria-describedby=\"caption-attachment-8162\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8162\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/mang-con-tro-c.jpg\" alt=\"M\u1ea3ng con tr\u1ecf C++\" width=\"650\" height=\"400\" srcset=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/mang-con-tro-c.jpg 650w, https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/mang-con-tro-c-400x246.jpg 400w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption id=\"caption-attachment-8162\" class=\"wp-caption-text\">M\u1ea3ng con tr\u1ecf C++<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">T\u1eeb \u0111\u00f3 ta r\u00fat ra \u0111\u01b0\u1ee3c k\u1ebft lu\u1eadn: M\u1ed7i bi\u1ebfn \u0111\u1ec1u \u0111\u01b0\u1ee3c \u0111\u00ednh k\u00e8m \u0111\u1ecba ch\u1ec9 c\u1ee7a n\u00f3 v\u00e0 gi\u00e1 tr\u1ecb n\u00f3 \u0111ang l\u01b0u tr\u1eef. \u0110\u1ec3 x\u00e1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c \u0111\u1ecba ch\u1ec9 c\u1ee7a bi\u1ebfn, ta ch\u1ec9 c\u1ea7n th\u00eam d\u1ea5u &amp; \u0111\u1eb1ng tr\u01b0\u1edbc n\u00f3.\\<\/p>\n<p>&gt;&gt;&gt; Xem th\u00eam : <a href=\"https:\/\/teky.edu.vn\/blog\/heroku-la-gi\/\"><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Nguy\u00ean l\u00fd SOLID l\u00e0 g\u00ec? C\u00e1ch gi\u1ea3i tr\u00ecnh SOLID \u0111\u01a1n gi\u1ea3n nh\u1ea5t&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4480,&quot;10&quot;:2,&quot;11&quot;:0,&quot;15&quot;:&quot;Arial&quot;}\">Nguy\u00ean l\u00fd SOLID l\u00e0 g\u00ec? C\u00e1ch gi\u1ea3i tr\u00ecnh SOLID \u0111\u01a1n gi\u1ea3n nh\u1ea5t<\/span><\/a><\/p>\n<p style=\"text-align: justify;\">V\u00ed d\u1ee5 th\u1ef1c h\u00e0nh: Khi ch\u1ea1y \u0111o\u1ea1n m\u00e3 sau:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">#include &lt;stdio.h&gt;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int main()<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">{<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">\u00a0\u00a0int number = 5;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">\u00a0\u00a0printf(&#8220;Gia tri cua number = %d&#8221;, number);<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">\u00a0<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">\u00a0\u00a0\/\/ truy xu\u1ea5t \u0111\u1ecba ch\u1ec9 b\u1eb1ng c\u00e1ch th\u00eam &amp; tr\u01b0\u1edbc t\u00ean bi\u1ebfn<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">\u00a0\u00a0printf(&#8220;\\nDia chi cua number = %d&#8221;, &amp;number);\u00a0\u00a0<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">\u00a0\u00a0return 0;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">}<\/span><\/p>\n<p style=\"text-align: justify;\">Th\u00ec ta s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 l\u00e0:<\/p>\n<p style=\"text-align: justify;\">Gia tri cua number = 5<\/p>\n<p style=\"text-align: justify;\">Dia chi cua number = 6487580<\/p>\n<p style=\"text-align: justify;\">Ch\u00fa \u00fd r\u1eb1ng k\u1ebft qu\u1ea3 \u1edf m\u1ed7i m\u00e1y c\u00f3 th\u1ec3 kh\u00e1c nhau do th\u00f4ng s\u1ed1 kh\u00f4ng gi\u1ed1ng nhau. N\u1ebfu b\u1ea1n mu\u1ed1n nh\u1eadn \u0111\u1ecba ch\u1ec9 l\u00e0 hexa nh\u01b0 \u0111\u1ea7u b\u00e0i, h\u00e3y thay th\u1ebf %d b\u1eb1ng %x.<\/p>\n<p><a href=\"https:\/\/lotrinhlaptrinh.teky.vn\/?utm_id=ContentBlog&amp;utm_medium=Click_Blog&amp;utm_source=ContentBlog\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-22416\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2023\/10\/dang-ky-lap-trinh-teky.gif\" alt=\"dang-ky-lap-trinh\" width=\"600\" height=\"314\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Con_tro_trong_C_la_gi\"><\/span>Con tr\u1ecf trong C l\u00e0 g\u00ec?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Quay tr\u1edf l\u1ea1i v\u1edbi kh\u00e1i ni\u1ec7m c\u1ee7a con tr\u1ecf trong C. Con tr\u1ecf C c\u0169ng l\u00e0 m\u1ed9t d\u1ea1ng bi\u1ebfn c\u00f3 \u0111\u1ecba ch\u1ec9 v\u00e0 gi\u00e1 tr\u1ecb \u0111i k\u00e8m. Nh\u01b0ng pointer (con tr\u1ecf C) l\u00e0 m\u1ed9t bi\u1ebfn \u0111\u1eb7c bi\u1ec7t, n\u00f3 kh\u00f4ng l\u01b0u tr\u1eef nh\u1eefng gi\u00e1 tr\u1ecb th\u00f4ng th\u01b0\u1eddng. Bi\u1ebfn c\u1ee7a con tr\u1ecf s\u1ebd tr\u1ecf \u0111\u1ebfn m\u1ed9t \u0111\u1ecba ch\u1ec9 c\u1ee7a bi\u1ebfn kh\u00e1c. Ch\u00ednh v\u00ec th\u1ebf gi\u00e1 tr\u1ecb c\u1ee7a n\u00f3 \u1edf trong d\u1ea1ng m\u1ed9t \u0111\u1ecba ch\u1ec9.<\/p>\n<p style=\"text-align: justify;\">V\u1eady l\u00e0 trong con tr\u1ecf C s\u1ebd l\u01b0u tr\u1eef 2 \u0111\u1ecba ch\u1ec9 kh\u00e1c nhau: \u0111\u1ecba ch\u1ec9 c\u1ee7a con tr\u1ecf l\u00e0 v\u1ecb tr\u00ed c\u1ee7a n\u00f3 nh\u01b0ng gi\u00e1 tr\u1ecb c\u1ee7a n\u00f3 l\u1ea1i l\u00e0 \u0111\u1ecba ch\u1ec9 c\u1ee7a bi\u1ebfn m\u00e0 n\u00f3 \u0111ang tr\u1ecf t\u1edbi. Ngo\u00e0i ra, nh\u1edd kh\u1ea3 n\u0103ng l\u01b0u tr\u1eef \u0111\u1ecba ch\u1ec9 \u0111\u1eb7c bi\u1ec7t c\u1ee7a con tr\u1ecf C, n\u00f3 cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng tr\u1ecf \u0111\u1ebfn m\u1ed9t \u0111i\u1ec3m b\u1ea5t k\u1ef3 trong b\u1ed9 nh\u1edb. N\u1ebfu n\u1eafm ch\u1eafc c\u00e1ch s\u1eed d\u1ee5ng pointer, b\u1ea1n s\u1ebd c\u1ea3m th\u1ea5y \u0111\u00e2y l\u00e0 m\u1ed9t \u0111i\u1ec3m m\u1ea1nh tuy\u1ec7t v\u1eddi c\u1ee7a n\u00f3. Nh\u01b0ng n\u1ebfu ng\u01b0\u1ee3c l\u1ea1i, v\u00ec t\u00ecnh tr\u1ea1ng tr\u1ecf lung tung c\u1ee7a pointer, ng\u01b0\u1eddi d\u00f9ng kh\u00f4ng th\u1ec3 x\u1eed l\u00fd s\u1ebd cho \u0111\u00e2y l\u00e0 m\u1ed9t \u0111i\u1ec3m y\u1ebfu phi\u1ec1n ph\u1ee9c.<\/p>\n<p><em><strong>&gt;&gt;&gt;M\u1eddi b\u1ea1n tham kh\u1ea3o th\u00eam:<\/strong> <a class=\"LinkSuggestion__Link-sc-1gewdgc-4 evyocv\" href=\"https:\/\/teky.edu.vn\/blog\/cac-loai-tinh-cach-mbti\/\" target=\"_blank\" rel=\"noopener\">C\u00e1c lo\u1ea1i t\u00ednh c\u00e1ch MBTI l\u00e0 g\u00ec &#8211; Con b\u1ea1n thu\u1ed9c nh\u00f3m n\u00e0o?<\/a><\/em><\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Nhung_noi_dung_lien_quan_den_con_tro_C\"><\/span>Nh\u1eefng n\u1ed9i dung li\u00ean quan \u0111\u1ebfn con tr\u1ecf C++<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Cach_khai_bao_con_tro\"><\/span>C\u00e1ch khai b\u00e1o con tr\u1ecf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">C\u00e1ch khai b\u00e1o con tr\u1ecf C c\u0169ng gi\u1ed1ng nh\u01b0 c\u00e1c bi\u1ebfn b\u00ecnh th\u01b0\u1eddng kh\u00e1c, bao g\u1ed3m ki\u1ec3u d\u1eef li\u1ec7u v\u00e0 t\u00ean bi\u1ebfn \u0111\u01b0\u1ee3c ng\u0103n c\u00e1ch \u1edf gi\u1eefa b\u1edbi d\u1ea5u *. \u0110i\u1ec1u ki\u1ec7n l\u00e0 \u0111\u1ecbnh danh t\u00ean bi\u1ebfn ph\u1ea3i h\u1ee3p l\u1ec7. C\u00fa ph\u00e1p m\u1eabu khi khai b\u00e1o con tr\u1ecf nh\u01b0 sau:<\/p>\n<p style=\"text-align: justify;\">&lt;ki\u1ec3u d\u1eef li\u1ec7u&gt; * &lt;t\u00ean bi\u1ebfn&gt;<\/p>\n<p style=\"text-align: justify;\">ho\u1eb7c<\/p>\n<p style=\"text-align: justify;\">&lt;ki\u1ec3u d\u1eef li\u1ec7u&gt;* &lt;t\u00ean bi\u1ebfn&gt;<\/p>\n<p style=\"text-align: justify;\">hay<\/p>\n<p style=\"text-align: justify;\">&lt;ki\u1ec3u d\u1eef li\u1ec7u&gt; *&lt;t\u00ean bi\u1ebfn&gt;<\/p>\n<figure id=\"attachment_8164\" aria-describedby=\"caption-attachment-8164\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8164\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/vi-du-ve-con-tro-trong-c.jpg\" alt=\"V\u00ed d\u1ee5 v\u1ec1 con tr\u1ecf trong C\" width=\"650\" height=\"400\" srcset=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/vi-du-ve-con-tro-trong-c.jpg 650w, https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/vi-du-ve-con-tro-trong-c-400x246.jpg 400w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption id=\"caption-attachment-8164\" class=\"wp-caption-text\">V\u00ed d\u1ee5 v\u1ec1 con tr\u1ecf trong C<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">C\u1ea3 3 ki\u1ec3u khai b\u00e1o nh\u01b0 th\u1ebf n\u00e0y \u0111\u1ec1u \u0111\u00fang.<\/p>\n<p style=\"text-align: justify;\">C\u00f3 nhi\u1ec1u ki\u1ec3u d\u1eef li\u1ec7u kh\u00e1c nhau, c\u00f3 th\u1ec3 l\u00e0 void, int, float hay double\u2026 \u0111\u1ec1u \u0111\u01b0\u1ee3c. T\u00e1c d\u1ee5ng c\u1ee7a d\u1ea5u * l\u00e0 cho tr\u00ecnh bi\u00ean d\u1ecbch bi\u1ebft \u0111\u1eb1ng sau n\u00f3 l\u00e0 m\u1ed9t bi\u1ebfn \u0111\u01b0\u1ee3c khai b\u00e1o d\u1ea1ng con tr\u1ecf. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 m\u1ed9t s\u1ed1 v\u00ed d\u1ee5 v\u1ec1 c\u00fa ph\u00e1p c\u1ee5 th\u1ec3 c\u1ee7a c\u00e1c lo\u1ea1i khai b\u00e1o tr\u1ecf bi\u1ebfn kh\u00e1c nhau:<\/p>\n<ul style=\"text-align: justify;\">\n<li style=\"font-weight: 400;\" aria-level=\"1\">Tr\u01b0\u1eddng h\u1ee3p khai b\u00e1o con tr\u1ecf \u0111\u1ec3 tr\u1ecf t\u1edbi bi\u1ebfn ki\u1ec3u nguy\u00ean: int *p_i;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Tr\u01b0\u1eddng h\u1ee3p khai b\u00e1o con tr\u1ecf C++ ki\u1ec3u int, bi\u1ebfn val (kh\u00f4ng ph\u1ea3i con tr\u1ecf) c\u0169ng ki\u1ec3u int: int *p, val;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Tr\u01b0\u1eddng h\u1ee3p khai b\u00e1o con tr\u1ecf \u0111\u1ec3 tr\u1ecf t\u1edbi bi\u1ebfn ki\u1ec3u th\u1ef1c: float *p_f;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Tr\u01b0\u1eddng h\u1ee3p khai b\u00e1o con tr\u1ecf \u0111\u1ec3 tr\u1ecf t\u1edbi bi\u1ebfn ki\u1ec3u k\u00fd t\u1ef1: char *p_char;<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Tr\u01b0\u1eddng h\u1ee3p khai b\u00e1o con tr\u1ecf ki\u1ec3u void (kh\u00f4ng ki\u1ec3u): void *p_v;<\/li>\n<\/ul>\n<p>&gt;&gt;&gt; Xem th\u00eam : <a href=\"https:\/\/teky.edu.vn\/blog\/webhook-la-gi\/\"><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Webhook l\u00e0 g\u00ec? Nh\u1eefng l\u01b0u \u00fd khi s\u1eed d\u1ee5ng Webhook cho ng\u01b0\u1eddi m\u1edbi&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4480,&quot;10&quot;:2,&quot;11&quot;:0,&quot;15&quot;:&quot;Arial&quot;}\">Webhook l\u00e0 g\u00ec? Nh\u1eefng l\u01b0u \u00fd khi s\u1eed d\u1ee5ng Webhook cho ng\u01b0\u1eddi m\u1edbi<\/span><\/a><\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Gan_dia_chi_vao_con_tro_trong_C\"><\/span>G\u00e1n \u0111\u1ecba ch\u1ec9 v\u00e0o con tr\u1ecf trong C<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">B\u1ea1n ch\u1ec9 n\u00ean g\u00e1n \u0111\u1ecba ch\u1ec9 cho con tr\u1ecf sau khi \u0111\u00e3 khai b\u00e1o n\u00f3 th\u00e0nh c\u00f4ng. N\u1ebfu ch\u01b0a khai b\u00e1o m\u00e0 b\u1ea1n \u0111\u00e3 g\u00e1n gi\u00e1 tr\u1ecb th\u00ec con tr\u1ecf \u0111\u00f3 s\u1ebd t\u01b0\u01a1ng \u0111\u01b0\u01a1ng nh\u01b0 m\u1ed9t bi\u1ebfn r\u00e1c, c\u00f3 th\u1ec3 l\u00e0m l\u1ed7i h\u1ec7 th\u1ed1ng khi kh\u1edfi ch\u1ea1y. Phi\u1ec1n ph\u1ee9c h\u01a1n, n\u1ebfu con tr\u1ecf \u0111\u00f3 b\u1ecb tr\u1ecf \u0111\u1ebfn m\u1ed9t bi\u1ebfn quan tr\u1ecdng, n\u00f3 s\u1ebd l\u00e0m \u0111\u1ea3o l\u1ed9n to\u00e0n b\u1ed9 ph\u1ea7n m\u1ec1m c\u1ee7a b\u1ea1n.<\/p>\n<p style=\"text-align: justify;\">C\u00f3 2 tr\u01b0\u1eddng h\u1ee3p \u0111\u1ec3 b\u1ea1n g\u00e1n \u0111\u1ecba ch\u1ec9 cho con tr\u1ecf trong C:<\/p>\n<ul style=\"text-align: justify;\">\n<li style=\"font-weight: 400;\" aria-level=\"1\">G\u00e1n \u0111\u1ecba ch\u1ec9 sau khi \u0111\u00e3 khai b\u00e1o: Trong v\u00ed d\u1ee5 d\u01b0\u1edbi \u0111\u00e2y, gi\u00e1 tr\u1ecb \u0111\u01b0\u1ee3c g\u00e1n cho p l\u00e0 \u0111\u1ecba ch\u1ec9 c\u1ee7a value.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int *p, value;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">value = 5;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">p = &amp;value;<\/span><\/p>\n<ul style=\"text-align: justify;\">\n<li style=\"font-weight: 400;\" aria-level=\"1\">Khai b\u00e1o v\u00e0 g\u00e1n \u0111\u1ecba ch\u1ec9 \u0111\u1ed3ng th\u1eddi: Trong v\u00ed d\u1ee5 d\u01b0\u1edbi, ho\u1ea1t \u0111\u1ed9ng khai b\u00e1o v\u00e0 g\u00e1n gi\u00e1 tr\u1ecb cho p l\u00e0 \u0111\u1ecba ch\u1ec9 c\u1ee7a value \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n c\u00f9ng l\u00fac.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int value = 5;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int *p = &amp;value;<\/span><\/p>\n<p style=\"text-align: justify;\">L\u01b0u \u00fd r\u1eb1ng ho\u1ea1t \u0111\u1ed9ng kh\u1edfi t\u1ea1o v\u00e0 g\u00e1n \u0111\u1ecba ch\u1ec9 n\u00ean \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n c\u00f9ng nhau. N\u1ebfu con tr\u1ecf b\u1ea1n \u0111\u1ecbnh kh\u1edfi t\u1ea1o l\u00e0 d\u1ea1ng void, n\u00f3 c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c tr\u1ecf t\u1edbi b\u1ea5t k\u1ef3 \u0111\u1ecba ch\u1ec9 c\u1ee7a b\u1ea5t k\u1ef3 bi\u1ebfn hay ki\u1ec3u d\u1eef li\u1ec7u n\u00e0o. N\u1ebfu b\u1ea1n \u0111\u00e3 khai b\u00e1o con tr\u1ecf r\u1ed3i nh\u01b0ng v\u1eabn ch\u01b0a bi\u1ebft g\u1eafn v\u00e0o \u0111\u1ecba ch\u1ec9 n\u00e0o th\u00ec hay tr\u1ecf n\u00f3 \u0111\u1ebfn NULL b\u1eb1ng c\u00fa ph\u00e1p int *p = NULL. Khi \u0111\u00f3 con tr\u1ecf s\u1ebd v\u00f4 h\u1ea1i v\u1edbi gi\u00e1 tr\u1ecb b\u1eb1ng 0.<\/p>\n<figure id=\"attachment_8161\" aria-describedby=\"caption-attachment-8161\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8161\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/cau-tao-cua-con-tro-c.jpg\" alt=\"C\u1ea5u t\u1ea1o c\u1ee7a con tr\u1ecf C\" width=\"650\" height=\"400\" srcset=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/cau-tao-cua-con-tro-c.jpg 650w, https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/cau-tao-cua-con-tro-c-400x246.jpg 400w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption id=\"caption-attachment-8161\" class=\"wp-caption-text\">C\u1ea5u t\u1ea1o c\u1ee7a con tr\u1ecf C<\/figcaption><\/figure>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Moi_quan_he_giua_con_tro_va_mang_dong_trong_C\"><\/span>M\u1ed1i quan h\u1ec7 gi\u1eefa con tr\u1ecf v\u00e0 m\u1ea3ng \u0111\u1ed9ng trong C++<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Bi\u1ebfn con tr\u1ecf v\u00e0 m\u1ea3ng \u0111\u1ed9ng trong C++ c\u00f3 m\u1ed9t m\u1ed1i li\u00ean h\u1ec7 r\u1ea5t l\u1edbn. Tr\u01b0\u1edbc h\u1ebft ta s\u1ebd \u0111i nhanh v\u1ec1 nh\u1eefng \u0111\u1ecbnh ngh\u0129a c\u01a1 b\u1ea3n. Bi\u1ebfn \u0111\u1ed9ng c\u00f2n \u0111\u01b0\u1ee3c g\u1ecdi l\u00e0 bi\u1ebfn c\u1ea5p ph\u00e1t \u0111\u1ed9ng. N\u00f3 \u0111\u01b0\u1ee3c hi\u1ec3u nh\u01b0 m\u1ed9t ki\u1ec3u d\u1eef li\u1ec7u d\u00f9ng \u0111\u1ec3 \u0111\u1ecbnh ngh\u0129a. N\u00f3 kh\u00f4ng c\u00f3 t\u00ean m\u00e0 c\u0169ng kh\u00f4ng \u0111\u01b0\u1ee3c khai b\u00e1o trong v\u00f9ng bi\u1ebfn. Bi\u1ebfn \u0111\u1ed9ng kh\u00f4ng \u0111\u01b0\u1ee3c li\u00ean k\u1ebft v\u1edbi b\u1ea5t k\u1ef3 bi\u1ebfn n\u00e0o. \u0110\u1ec3 qu\u1ea3n l\u00fd n\u00f3, ng\u01b0\u1eddi ta s\u1ebd d\u00f9ng con tr\u1ecf trong C++.<\/p>\n<p><a href=\"https:\/\/lotrinhlaptrinh.teky.vn\/?utm_id=ContentBlog&amp;utm_medium=Click_Blog&amp;utm_source=ContentBlog\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-22417\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2023\/10\/dang-ky-lap-trinh-teky1.gif\" alt=\"dang-ky-lap-trinh-teky1\" width=\"600\" height=\"314\" \/><\/a><\/p>\n<p>&gt;&gt;&gt; Xem th\u00eam : <a href=\"https:\/\/teky.edu.vn\/blog\/gitignore-file\/\"><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Gitignore File l\u00e0 g\u00ec? \u0110\u1eb7c \u0111i\u1ec3m v\u00e0 c\u00e1ch th\u1ee9c s\u1eed d\u1ee5ng ra sao?&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:4480,&quot;10&quot;:2,&quot;11&quot;:0,&quot;15&quot;:&quot;Arial&quot;}\">Gitignore File l\u00e0 g\u00ec? \u0110\u1eb7c \u0111i\u1ec3m v\u00e0 c\u00e1ch th\u1ee9c s\u1eed d\u1ee5ng ra sao?<\/span><\/a><\/p>\n<p style=\"text-align: justify;\">V\u00ec bi\u1ebfn \u0111\u1ed9ng kh\u00f4ng c\u00f3 t\u00ean hay ph\u1ea7n khai b\u00e1o n\u00ean con tr\u1ecf s\u1ebd qu\u1ea3n l\u00fd c\u00e1c bi\u1ebfn c\u1ea5p ph\u00e1t \u0111\u1ed9ng trong C++. Khi \u0111\u00f3 ta g\u1ecdi n\u00f3 l\u00e0 bi\u1ebfn con tr\u1ecf. \u0110\u1ec3 b\u1eaft \u0111\u1ea7u c\u1ea5p ph\u00e1t v\u00f9ng nh\u1edb cho m\u1ed9t v\u00f9ng nh\u1edb, ta s\u1ebd th\u1ef1c hi\u1ec7n nh\u01b0 sau:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">new &lt;ki\u1ec3u_d\u1eef_li\u1ec7u&gt;;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">V\u00ed d\u1ee5 th\u1ef1c t\u1ebf:<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">new int;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">new float;<\/span><\/p>\n<p style=\"text-align: justify;\">Khi c\u1ea5p ph\u00e1t th\u00e0nh c\u00f4ng, con tr\u1ecf s\u1ebd t\u1ef1 \u0111\u1ed9ng tr\u1ecf \u0111\u1ebfn bi\u1ebfn \u0111\u1ed9ng. V\u00ec bi\u1ebfn \u0111\u1ed9ng kh\u00f4ng c\u00f3 \u0111\u1ecba ch\u1ec9, ta ph\u1ea3i g\u1eafn \u0111\u1ecba ch\u1ec9 c\u1ee7a n\u00f3 l\u00ean con tr\u1ecf nh\u01b0 sau:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int *ptr = new int;\u00a0<\/span><\/p>\n<p style=\"text-align: justify;\">L\u00fac n\u00e0y, con tr\u1ecf \u0111\u00e3 \u0111\u01b0\u1ee3c tr\u1ecf t\u1edbi bi\u1ebfn \u0111\u1ed9ng ki\u1ec3u int.<\/p>\n<p style=\"text-align: justify;\">Ngo\u00e0i ra, b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 khai b\u00e1o l\u00e0 kh\u1edfi t\u1ea1o gi\u00e1 tr\u1ecb c\u00f9ng l\u00fac nh\u01b0 sau:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">int *ptr1 = new int(2409);<\/span><\/p>\n<p style=\"text-align: justify;\">N\u1ebfu mu\u1ed1n x\u00f3a v\u00f9ng nh\u1edb c\u1ee7a bi\u1ebfn \u0111\u1ed9ng, ta s\u1ebd d\u00f9ng to\u00e1n t\u1eed delete. C\u00fa ph\u00e1p m\u1eabu nh\u01b0 sau:<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">delete &lt;t\u00ean_bi\u1ebfn_con_tr\u1ecf&gt;;<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">V\u00ed d\u1ee5 th\u1ef1c t\u1ebf: delete ptr_a;<\/span><\/p>\n<figure id=\"attachment_8163\" aria-describedby=\"caption-attachment-8163\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8163\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/huong-dan-su-dung-con-tro.jpg\" alt=\"H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng con tr\u1ecf\" width=\"650\" height=\"400\" srcset=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/huong-dan-su-dung-con-tro.jpg 650w, https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/huong-dan-su-dung-con-tro-400x246.jpg 400w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption id=\"caption-attachment-8163\" class=\"wp-caption-text\">H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng con tr\u1ecf<\/figcaption><\/figure>\n<p><em><strong>&gt;&gt;&gt;M\u1eddi b\u1ea1n tham kh\u1ea3o th\u00eam:<\/strong> <span style=\"color: #0000ff;\"><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 evyocv\" style=\"color: #0000ff;\" href=\"https:\/\/teky.edu.vn\/blog\/ky-su-cau-noi-la-gi\/\" target=\"_blank\" rel=\"noopener\">K\u1ef9 s\u01b0 c\u1ea7u n\u1ed1i l\u00e0 g\u00ec? T\u00ecm hi\u1ec3u v\u00e0 gi\u1ea3i \u0111\u00e1p v\u1ec1 Brse?\u00a0<\/a><\/span><\/em><\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Ket_luan\"><\/span>K\u1ebft lu\u1eadn<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Qua b\u00e0i vi\u1ebft tr\u00ean, h\u1eb3n l\u00e0 b\u1ea1n \u0111\u1ecdc \u0111\u00e3 bi\u1ebft th\u00eam \u0111\u01b0\u1ee3c r\u1ea5t nhi\u1ec1u th\u00f4ng tin h\u1eefu \u00edch xoay xung quanh ch\u1ee7 \u0111\u1ec1 v\u1ec1 con tr\u1ecf trong C. Nh\u00ecn chung, con tr\u1ecf trong C c\u00f3 li\u00ean quan m\u1eadt thi\u1ebft \u0111\u1ebfn r\u1ea5t nhi\u1ec1u l\u0129nh v\u1ef1c kh\u00e1c nhau t\u1ea1i c\u1ea5p ph\u00e1t \u0111\u1ed9ng trong C. V\u00ec th\u1ebf \u0111\u1ec3 thao t\u00e1c th\u00e0nh th\u1ea1o v\u1edbi ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh C++, con tr\u1ecf l\u00e0 ph\u1ea7n b\u1ea1n ph\u1ea3i hi\u1ec3u r\u00f5. Nh\u1eefng kh\u00e1i ni\u1ec7m nh\u01b0 \u0111\u1ecba ch\u1ec9 \u00f4 nh\u1edb hay c\u00e1ch khai b\u00e1o, c\u00e1ch g\u00e1n bi\u1ebfn nh\u1edb ch\u1ec9 l\u00e0 nh\u1eefng ki\u1ebfn th\u1ee9c c\u01a1 b\u1ea3n v\u00e0 \u0111\u01a1n gi\u1ea3n nh\u1ea5t. Ph\u1ea1m vi ki\u1ebfn th\u1ee9c m\u00e0 con tr\u1ecf C mang \u0111\u1ebfn c\u00f2n r\u1ea5t nhi\u1ec1u, \u0111\u00f2i kh\u1ecfi ng\u01b0\u1eddi h\u1ecdc ph\u1ea3i bi\u1ebft t\u1ef1 t\u00ecm t\u00f2i v\u00e0 r\u00e8n luy\u1ec7n ch\u0103m ch\u1ec9.<\/p>\n<blockquote><p>M\u1eddi b\u1ea1n \u0111\u1ecdc tham kh\u1ea3o th\u00eam: <a href=\"https:\/\/teky.edu.vn\/blog\/hadoop-la-gi\/\">Hadoop l\u00e0 g\u00ec?<\/a><\/p><\/blockquote>\n<p style=\"text-align: justify;\">Tuy nhi\u00ean b\u1ea1n \u0111\u1eebng n\u1ea3n ch\u00ed b\u1edfi con tr\u1ecf C l\u00e0 ph\u1ea7n kh\u00f4ng qu\u00e1 kh\u00f3 n\u1ebfu \u0111\u01b0\u1ee3c luy\u1ec7n t\u1eadp nhi\u1ec1u l\u1ea7n. \u0110\u00e2y c\u0169ng l\u00e0 ph\u1ea7n m\u00e0 b\u1ea5t k\u1ef3 l\u1eadp tr\u00ecnh vi\u00ean n\u00e0o c\u0169ng c\u1ea7n th\u00f4ng th\u1ea1o. V\u00ec th\u1ebf b\u00ean c\u1ea1nh nh\u1eefng ki\u1ebfn th\u1ee9c m\u00e0 Teky cung c\u1ea5p, h\u00e3y ch\u1ecbu kh\u00f3 t\u00ecm \u0111\u1ecdc th\u00eam nhi\u1ec1u t\u00e0i li\u1ec7u n\u00e2ng cao h\u01a1n v\u1ec1 con tr\u1ecf C nh\u00e9. R\u1ea5t nhi\u1ec1u th\u00f4ng tin h\u1eefu \u00edch \u0111\u01b0\u1ee3c bi\u00ean so\u1ea1n l\u1ea1i b\u1eb1ng ti\u1ebfng Vi\u1ec7t, v\u00ec th\u1ebf b\u1ea1n c\u0169ng kh\u00f4ng c\u1ea7n lo l\u1eafng kh\u00f4ng t\u00ecm \u0111\u01b0\u1ee3c t\u00e0i li\u1ec7u d\u1ec5 hi\u1ec3u. Ch\u00fac b\u1ea1n \u0111\u1ecdc nhanh ch\u00f3ng l\u00e0m ch\u1ee7 \u0111\u01b0\u1ee3c ph\u1ea7n ki\u1ebfn th\u1ee9c xung quanh con tr\u1ecf C++.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Thong_tin_co_ban_ve_Hoc_vien_chuyen_dao_tao_cong_nghe_va_lap_trinh_%E2%80%93_Teky\"><\/span><span style=\"font-size: 24px; color: #339966;\" data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;C\u00f9ng T\u00ecm Hi\u1ec3u V\u1ec1 Teky H\u1ecdc Vi\u1ec7n 5 sao \u0110\u00e0o T\u1ea1o Tr\u1ebb Em H\u1ecdc L\u1eadp Tr\u00ecnh (4-18 tu\u1ed5i)&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:17153,&quot;3&quot;:{&quot;1&quot;:0},&quot;11&quot;:4,&quot;12&quot;:0,&quot;17&quot;:1}\">Th\u00f4ng tin c\u01a1 b\u1ea3n v\u1ec1 H\u1ecdc vi\u1ec7n chuy\u00ean \u0111\u00e0o t\u1ea1o c\u00f4ng ngh\u1ec7 v\u00e0 l\u1eadp tr\u00ecnh &#8211; Teky\u00a0<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><iframe loading=\"lazy\" title=\"H\u1ecdc l\u1eadp tr\u00ecnh tr\u1ebb em \u1edf \u0111\u00e2u? - Gi\u1edbi thi\u1ec7u h\u1ecdc vi\u1ec7n c\u00f4ng ngh\u1ec7 TEKY h\u00e0ng \u0111\u1ea7u Vi\u1ec7t Nam\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/kGgr0XJAxFM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><strong>TEKY l\u00e0 H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7<\/strong> v\u1edbi ch\u01b0\u01a1ng tr\u00ecnh gi\u1ea3ng d\u1ea1y STEAM (Science \u2013 Technology \u2013 Engineering \u2013 Art \u2013 Mathematics) theo chu\u1ea9n M\u1ef9 \u0111\u1ea7u ti\u00ean t\u1ea1i Vi\u1ec7t Nam d\u00e0nh cho tr\u1ebb em t\u1eeb 4 \u0111\u1ebfn 18 tu\u1ed5i.<\/p>\n<p>\u0110\u01b0\u1ee3c th\u00e0nh l\u1eadp v\u00e0o th\u00e1ng 6 n\u0103m 2016, TEKY quy\u1ebft t\u00e2m th\u1ef1c hi\u1ec7n s\u1ee9 m\u1ec7nh mang \u0111\u1ebfn cho th\u1ebf h\u1ec7 tr\u1ebb Vi\u1ec7t Nam ki\u1ebfn th\u1ee9c to\u00e0n di\u1ec7n v\u1ec1 STEAM, \u0111\u1eb7c bi\u1ec7t l\u00e0 c\u00e1c t\u01b0 duy c\u00f4ng ngh\u1ec7, khoa h\u1ecdc m\u00e1y t\u00ednh v\u00e0 k\u1ef9 n\u0103ng th\u1ebf k\u1ef7 21 \u2013 4Cs (Critical Thinking: T\u01b0 duy ph\u1ea3n bi\u1ec7n \u2013 Communication: Giao ti\u1ebfp \u2013 Creativity: S\u00e1ng t\u1ea1o \u2013 Collaboration: L\u00e0m vi\u1ec7c nh\u00f3m).<\/p>\n<figure id=\"attachment_14828\" aria-describedby=\"caption-attachment-14828\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/teky.edu.vn\/?utm_source=Blog&amp;utm_medium=baiviet\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14828 size-full\" src=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/03\/Trai-nghiem-hoc-lap-trinh-mien-phi.jpg\" alt=\"Tr\u1ea3i nghi\u1ec7m h\u1ecdc l\u1eadp tr\u00ecnh mi\u1ec5n ph\u00ed\" width=\"600\" height=\"400\" srcset=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/03\/Trai-nghiem-hoc-lap-trinh-mien-phi.jpg 600w, https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/03\/Trai-nghiem-hoc-lap-trinh-mien-phi-400x267.jpg 400w, https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/03\/Trai-nghiem-hoc-lap-trinh-mien-phi-272x182.jpg 272w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-14828\" class=\"wp-caption-text\">Tr\u1ea3i nghi\u1ec7m h\u1ecdc l\u1eadp tr\u00ecnh mi\u1ec5n ph\u00ed<\/figcaption><\/figure>\n<h4><span class=\"ez-toc-section\" id=\"Day_la_chuong_trinh_khong_chi_trang_bi_kien_thuc_lap_trinh_ma_con_ren_luyen_nhom_ky_nang_4Cs_Tre_se_duoc\"><\/span>\u0110\u00e2y l\u00e0 ch\u01b0\u01a1ng tr\u00ecnh kh\u00f4ng ch\u1ec9 trang b\u1ecb ki\u1ebfn th\u1ee9c l\u1eadp tr\u00ecnh m\u00e0 c\u00f2n r\u00e8n luy\u1ec7n nh\u00f3m k\u1ef9 n\u0103ng 4Cs. Tr\u1ebb s\u1ebd \u0111\u01b0\u1ee3c:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>\u00a0H\u1ecdc t\u01b0 duy ph\u1ea3n bi\u1ec7n th\u00f4ng qua vi\u1ec7c ph\u00e2n t\u00edch c\u00e1c v\u1ea5n \u0111\u1ec1.<\/li>\n<li>\u00a0H\u1ecdc t\u00ednh s\u00e1ng t\u1ea1o t\u01b0 duy Logic th\u00f4ng qua vi\u1ec7c l\u1eafp \u0111\u1eb7t v\u00e0 l\u1eadp tr\u00ecnh robot th \u00f4ng qua c\u00e1c m\u00f4 h\u00ecnh Lego Mindstorm, app tr\u00f2 ch\u01a1i. Gi\u00fap con h\u1ecdc gi\u1ecfi m\u00f4n To\u00e1n tr\u00ean l\u1edbp<\/li>\n<li>\u00a0K\u1ef9 n\u0103ng h\u1ee3p t\u00e1c th\u00f4ng qua c\u00e1c tr\u00f2 ch\u01a1i team-building, c\u00e1c d\u1ef1 \u00e1n nh\u00f3m tr\u00ean l\u1edbp.<\/li>\n<li>\u00a0Ph\u00e1t huy kh\u1ea3 n\u0103ng giao ti\u1ebfp hi\u1ec7u qu\u1ea3 b\u1eb1ng nhi\u1ec1u b\u00e0i t\u1eadp v\u00e0 ho\u1ea1t \u0111\u1ed9ng h\u1ea5p d\u1eabn.<\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" title=\"Shark Nguy\u1ec5n Ho\u00e0 B\u00ecnh \u0111\u1ed3ng h\u00e0nh c\u00f9ng con h\u1ecdc l\u1eadp tr\u00ecnh t\u1ea1i h\u1ecdc vi\u1ec7n c\u00f4ng ngh\u1ec7 Teky h\u00e0ng \u0111\u1ea7u Vi\u1ec7t Nam\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/q6QbqIs6ll8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>C\u00e1c b\u1ed9 m\u00f4n gi\u1ea3ng d\u1ea1y t\u1ea1i Teky g\u1ed3m: <span style=\"font-weight: 400;\">L\u1eadp tr\u00ecnh v\u00e0 ph\u00e1t tri\u1ec3n \u1ee9ng d\u1ee5ng<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">l\u1eadp tr\u00ecnh game<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">l\u1eadp tr\u00ecnh web v\u1edbi python<\/span> <span style=\"font-weight: 400;\">\u00a0<\/span><span style=\"font-weight: 400;\">L\u1eadp tr\u00ecnh Scratch<\/span> <span style=\"font-weight: 400;\">Robotics<\/span> Engineering, C\u00f4ng ngh\u1ec7 3D v\u00e0 MultiMedia. Ch\u00fang t\u00f4i tin r\u1eb1ng tr\u1ebb em Vi\u1ec7t Nam c\u00f3 c\u01a1 h\u1ed9i ph\u00e1t tri\u1ec3n m\u1ea1nh m\u1ebd trong m\u1ed9t n\u1ec1n kinh t\u1ebf s\u1ed1 v\u00e0 c\u1ea7n \u0111\u01b0\u1ee3c trang b\u1ecb s\u1eb5n s\u00e0ng \u0111\u1ec3 tr\u1edf th\u00e0nh nh\u1eefng doanh nh\u00e2n c\u00f4ng ngh\u1ec7 trong t\u01b0\u01a1ng lai.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Lien_he_ngay_hoc_vien_cong_nghe_sang_tao_TEKY_de_duoc_tu_van_khoa_hoc\"><\/span><span style=\"color: #008000;\"><b>Li\u00ean h\u1ec7 ngay h\u1ecdc vi\u1ec7n c\u00f4ng ngh\u1ec7 s\u00e1ng t\u1ea1o TEKY \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n kh\u00f3a h\u1ecdc:<\/b><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cam k\u00eat 7 tu\u1ed5i c\u00f3 th\u1ec3 l\u1eadp tr\u00ecnh<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Top 10 d\u1ef1 \u00e1n gi\u00e1o d\u1ee5c c\u00f3 t\u1ea7m \u1ea3nh h\u01b0\u1edfng nh\u1ea5t \u0110\u00f4ng Nam \u00c1 2017 &amp; 2018<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Top 3 D\u1ef1 \u00e1n xu\u1ea5t s\u1eafc nh\u1ea5t, NextGen \u2013 Th\u1ee5y S\u0129<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00a0Hotline H\u00e0 N\u1ed9i: 024-7109-6668 | 0975-241-015<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00a0Hotline H\u1ed3 Ch\u00ed Minh: 028-7109 9948 | 097-900-8642<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Website <\/span><a href=\"https:\/\/teky.edu.vn\/\"><span style=\"font-weight: 400;\">https:\/\/teky.edu.vn<\/span><\/a><span style=\"font-weight: 400;\"> | Email: support@teky.edu.vn\u00a0<\/span><\/p>\n<p><strong>Xem th\u00eam:\u00a0<\/strong><\/p>\n<ul>\n<li><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 evyocv\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c-2\/\" target=\"_blank\" rel=\"noopener\">Con tr\u1ecf trong C++ l\u00e0 g\u00ec? C\u00e1c kh\u00e1i ni\u1ec7m c\u01a1 b\u1ea3n xung quanh con tr\u1ecf<\/a><\/li>\n<li><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 evyocv\" href=\"https:\/\/teky.edu.vn\/blog\/cac-kieu-du-lieu-c\/\" target=\"_blank\" rel=\"noopener\">C++ l\u00e0 g\u00ec? C\u00e1c ki\u1ec3u d\u1eef li\u1ec7u C++ g\u1ed3m 5 ki\u1ec3u g\u00ec b\u1ea1n c\u00f3 bi\u1ebft?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Con tr\u1ecf trong C l\u00e0 m\u1ed9t kh\u00e1i ni\u1ec7m r\u1ea5t quen thu\u1ed9c \u0111\u1ed1i v\u1edbi c\u00e1c nh\u00e0 l\u1eadp tr\u00ecnh vi\u00ean. Tuy c\u01a1 b\u1ea3n nh\u01b0ng l\u0129nh v\u1ef1c ki\u1ebfn th\u1ee9c m\u00e0 con tr\u1ecf trong C++ li\u00ean quan l\u00e0 r\u1ea5t r\u1ed9ng. Ng\u01b0\u1eddi d\u00f9ng c\u1ea7n n\u1eafm v\u1eefng nh\u1eefng th\u00f4ng tin quan tr\u1ecdng n\u00e0y \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng m\u1ed9t c\u00e1ch nhu\u1ea7n &hellip;<\/p>\n","protected":false},"author":10,"featured_media":8165,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"show_on_app":false,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-8160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lap-trinh"],"acf":{"show_on_app":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.9 (Yoast SEO v26.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n<\/title>\n<meta name=\"description\" content=\"Con tr\u1ecf trong C c\u00f3 r\u1ea5t nhi\u1ec1u vai tr\u00f2n quan tr\u1ecdng trong c\u00e1c h\u1ec7 th\u1ed1ng l\u1eadp tr\u00ecnh. C\u00f9ng t\u00ecm hi\u1ec3u ngay \u0111\u1eb7c \u0111i\u1ec3m c\u0169ng nh\u01b0 c\u00e1ch s\u1eed d\u1ee5ng con tr\u1ecf.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n\" \/>\n<meta property=\"og:description\" content=\"Con tr\u1ecf trong C c\u00f3 r\u1ea5t nhi\u1ec1u vai tr\u00f2n quan tr\u1ecdng trong c\u00e1c h\u1ec7 th\u1ed1ng l\u1eadp tr\u00ecnh. C\u00f9ng t\u00ecm hi\u1ec3u ngay \u0111\u1eb7c \u0111i\u1ec3m c\u0169ng nh\u01b0 c\u00e1ch s\u1eed d\u1ee5ng con tr\u1ecf.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\" \/>\n<meta property=\"og:site_name\" content=\"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TekyAcademy\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-24T14:26:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-29T08:44:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kh\u00e1nh Kim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SteamTeky\" \/>\n<meta name=\"twitter:site\" content=\"@SteamTeky\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kh\u00e1nh Kim\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 ph\u00fat\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\"},\"author\":{\"name\":\"Kh\u00e1nh Kim\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/#\/schema\/person\/8f946d2123e4e2277107e392790a1bd6\"},\"headline\":\"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n\",\"datePublished\":\"2023-10-24T14:26:01+00:00\",\"dateModified\":\"2023-10-29T08:44:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\"},\"wordCount\":2977,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg\",\"articleSection\":[\"IT - L\u1eadp tr\u00ecnh\"],\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\",\"url\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\",\"name\":\"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n\",\"isPartOf\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg\",\"datePublished\":\"2023-10-24T14:26:01+00:00\",\"dateModified\":\"2023-10-29T08:44:35+00:00\",\"description\":\"Con tr\u1ecf trong C c\u00f3 r\u1ea5t nhi\u1ec1u vai tr\u00f2n quan tr\u1ecdng trong c\u00e1c h\u1ec7 th\u1ed1ng l\u1eadp tr\u00ecnh. C\u00f9ng t\u00ecm hi\u1ec3u ngay \u0111\u1eb7c \u0111i\u1ec3m c\u0169ng nh\u01b0 c\u00e1ch s\u1eed d\u1ee5ng con tr\u1ecf.\",\"breadcrumb\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#breadcrumb\"},\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage\",\"url\":\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg\",\"contentUrl\":\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg\",\"width\":650,\"height\":400,\"caption\":\"Con tr\u1ecf trong C l\u00e0 g\u00ec?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"IT - L\u1eadp tr\u00ecnh\",\"item\":\"https:\/\/teky.edu.vn\/blog\/lap-trinh\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/#website\",\"url\":\"https:\/\/teky.edu.vn\/blog\/\",\"name\":\"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7\",\"description\":\"Tr\u1ebb em c\u1ea7n h\u1ecdc l\u1eadp tr\u00ecnh\",\"publisher\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/teky.edu.vn\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"vi\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/#organization\",\"name\":\"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7\",\"url\":\"https:\/\/teky.edu.vn\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/02\/logo-teky.png\",\"contentUrl\":\"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/02\/logo-teky.png\",\"width\":495,\"height\":234,\"caption\":\"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7\"},\"image\":{\"@id\":\"https:\/\/teky.edu.vn\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/TekyAcademy\",\"https:\/\/x.com\/SteamTeky\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/#\/schema\/person\/8f946d2123e4e2277107e392790a1bd6\",\"name\":\"Kh\u00e1nh Kim\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\/\/teky.edu.vn\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ab08c4bbf1d0787f26b32ab04d2cb7e329a3a082ea3dcb6ba78fb27076b856a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ab08c4bbf1d0787f26b32ab04d2cb7e329a3a082ea3dcb6ba78fb27076b856a9?s=96&d=mm&r=g\",\"caption\":\"Kh\u00e1nh Kim\"},\"url\":\"https:\/\/teky.edu.vn\/blog\/author\/kimkhanh\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n","description":"Con tr\u1ecf trong C c\u00f3 r\u1ea5t nhi\u1ec1u vai tr\u00f2n quan tr\u1ecdng trong c\u00e1c h\u1ec7 th\u1ed1ng l\u1eadp tr\u00ecnh. C\u00f9ng t\u00ecm hi\u1ec3u ngay \u0111\u1eb7c \u0111i\u1ec3m c\u0169ng nh\u01b0 c\u00e1ch s\u1eed d\u1ee5ng con tr\u1ecf.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/","og_locale":"vi_VN","og_type":"article","og_title":"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n","og_description":"Con tr\u1ecf trong C c\u00f3 r\u1ea5t nhi\u1ec1u vai tr\u00f2n quan tr\u1ecdng trong c\u00e1c h\u1ec7 th\u1ed1ng l\u1eadp tr\u00ecnh. C\u00f9ng t\u00ecm hi\u1ec3u ngay \u0111\u1eb7c \u0111i\u1ec3m c\u0169ng nh\u01b0 c\u00e1ch s\u1eed d\u1ee5ng con tr\u1ecf.","og_url":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/","og_site_name":"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7","article_publisher":"https:\/\/www.facebook.com\/TekyAcademy","article_published_time":"2023-10-24T14:26:01+00:00","article_modified_time":"2023-10-29T08:44:35+00:00","og_image":[{"width":650,"height":400,"url":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg","type":"image\/jpeg"}],"author":"Kh\u00e1nh Kim","twitter_card":"summary_large_image","twitter_creator":"@SteamTeky","twitter_site":"@SteamTeky","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"Kh\u00e1nh Kim","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"13 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#article","isPartOf":{"@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/"},"author":{"name":"Kh\u00e1nh Kim","@id":"https:\/\/teky.edu.vn\/blog\/#\/schema\/person\/8f946d2123e4e2277107e392790a1bd6"},"headline":"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n","datePublished":"2023-10-24T14:26:01+00:00","dateModified":"2023-10-29T08:44:35+00:00","mainEntityOfPage":{"@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/"},"wordCount":2977,"commentCount":0,"publisher":{"@id":"https:\/\/teky.edu.vn\/blog\/#organization"},"image":{"@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage"},"thumbnailUrl":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg","articleSection":["IT - L\u1eadp tr\u00ecnh"],"inLanguage":"vi","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/","url":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/","name":"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n","isPartOf":{"@id":"https:\/\/teky.edu.vn\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage"},"image":{"@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage"},"thumbnailUrl":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg","datePublished":"2023-10-24T14:26:01+00:00","dateModified":"2023-10-29T08:44:35+00:00","description":"Con tr\u1ecf trong C c\u00f3 r\u1ea5t nhi\u1ec1u vai tr\u00f2n quan tr\u1ecdng trong c\u00e1c h\u1ec7 th\u1ed1ng l\u1eadp tr\u00ecnh. C\u00f9ng t\u00ecm hi\u1ec3u ngay \u0111\u1eb7c \u0111i\u1ec3m c\u0169ng nh\u01b0 c\u00e1ch s\u1eed d\u1ee5ng con tr\u1ecf.","breadcrumb":{"@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#primaryimage","url":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg","contentUrl":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi.jpg","width":650,"height":400,"caption":"Con tr\u1ecf trong C l\u00e0 g\u00ec?"},{"@type":"BreadcrumbList","@id":"https:\/\/teky.edu.vn\/blog\/con-tro-trong-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"IT - L\u1eadp tr\u00ecnh","item":"https:\/\/teky.edu.vn\/blog\/lap-trinh\/"},{"@type":"ListItem","position":2,"name":"Con tr\u1ecf trong C l\u00e0 g\u00ec? Gi\u1edbi thi\u1ec7u kh\u00e1i ni\u1ec7m v\u00e0 n\u1ed9i dung c\u01a1 b\u1ea3n"}]},{"@type":"WebSite","@id":"https:\/\/teky.edu.vn\/blog\/#website","url":"https:\/\/teky.edu.vn\/blog\/","name":"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7","description":"Tr\u1ebb em c\u1ea7n h\u1ecdc l\u1eadp tr\u00ecnh","publisher":{"@id":"https:\/\/teky.edu.vn\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/teky.edu.vn\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/teky.edu.vn\/blog\/#organization","name":"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7","url":"https:\/\/teky.edu.vn\/blog\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/teky.edu.vn\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/02\/logo-teky.png","contentUrl":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/02\/logo-teky.png","width":495,"height":234,"caption":"TEKY - H\u1ecdc vi\u1ec7n s\u00e1ng t\u1ea1o c\u00f4ng ngh\u1ec7"},"image":{"@id":"https:\/\/teky.edu.vn\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TekyAcademy","https:\/\/x.com\/SteamTeky"]},{"@type":"Person","@id":"https:\/\/teky.edu.vn\/blog\/#\/schema\/person\/8f946d2123e4e2277107e392790a1bd6","name":"Kh\u00e1nh Kim","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/teky.edu.vn\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ab08c4bbf1d0787f26b32ab04d2cb7e329a3a082ea3dcb6ba78fb27076b856a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab08c4bbf1d0787f26b32ab04d2cb7e329a3a082ea3dcb6ba78fb27076b856a9?s=96&d=mm&r=g","caption":"Kh\u00e1nh Kim"},"url":"https:\/\/teky.edu.vn\/blog\/author\/kimkhanh\/"}]}},"thumbnail":"https:\/\/teky.edu.vn\/blog\/wp-content\/uploads\/2021\/07\/con-tro-trong-c-la-gi-400x246.jpg","_links":{"self":[{"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/posts\/8160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/comments?post=8160"}],"version-history":[{"count":3,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/posts\/8160\/revisions"}],"predecessor-version":[{"id":23059,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/posts\/8160\/revisions\/23059"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/media\/8165"}],"wp:attachment":[{"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/media?parent=8160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/categories?post=8160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teky.edu.vn\/blog\/wp-json\/wp\/v2\/tags?post=8160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}