Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Jul 19, 2026
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Jul 18, 2026
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
C Programming 2 පාඩම.
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="emask" data-source="post: 15498893" data-attributes="member: 485158"><p><span style="color: DarkRed"><span style="font-size: 18px">ඔන්න එහෙනම් අද මම මේකේ දෙවෙනි පාඩම පටන් ගත්ත. </span></span></p><p><span style="color: DarkRed"><span style="font-size: 18px">පලවෙනි පාඩමට මේ ලින්ක් එකෙන් යන්න </span></span></p><p><span style="color: DarkRed"><span style="font-size: 18px"><a href="http://www.elakiri.com/forum/showthread.php?t=1573406" target="_blank">http://www.elakiri.com/forum/showthread.php?t=1573406</a></span></span></p><p><span style="color: DarkRed"><span style="font-size: 18px"></span></span></p><p><span style="color: DarkRed"><span style="font-size: 18px">මම මෙතනදී ටිකක් විතර English වලින් උගන්නන්න හැදුවේ, එත් මම වැදගත් කටස් සිංහලෙන්ම විස්තර කරලා දෙන්නම්. එහෙම හොදි නේද යාලුවනේ.... <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></span></span></p><p><span style="color: DarkRed"><span style="font-size: 18px"></span></span></p><p><span style="color: DarkRed"><span style="font-size: 18px">ඔන්න එහෙනම් පටන් ගත්ත....</span></span></p><p></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">THE C CHARACTER SET</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">C uses the uppercase letters A to Z, the lowercase letters a to z, the digits 0 to 9, and certain special characters</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">as building blocks to form basic program elements (e.g., constants, variables, operators, expressions, etc.).</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">ඔක්කොම C වල Characters 92යි.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"><strong><u>Keywords </u></strong></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">There are certain reserved words, called keywords, that have standard, predefined meanings in C. These</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">keywords can be used only for their intended purpose; they cannot be used as programmer-defined identifiers.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">The standard keywords are</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">auto <span style="color: Black">extern</span> <span style="color: Purple">sizeof</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">break <span style="color: Black">floatn </span> <span style="color: purple">static</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">case <span style="color: black">for</span> <span style="color: purple">struct</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">char <span style="color: black">got</span> <span style="color: purple">switch</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">const <span style="color: black">if </span> <span style="color: purple">typedef</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">continue <span style="color: black">int </span> <span style="color: purple">union</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">default <span style="color: black">long</span> <span style="color: purple">unsigned</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">do <span style="color: black">register</span> <span style="color: purple">void</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">double <span style="color: black">return </span> <span style="color: purple">volatile</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">else <span style="color: black"> short</span> <span style="color: purple">while</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">enum <span style="color: purple">signed</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">Some compilers may also include some or all of the following keywords.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">ada <span style="color: black">far </span><span style="color: purple"> near</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">asm <span style="color: black">for </span> <span style="color: purple"><span style="color: purple">tran</span></span> <span style="color: black">pascal</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">entry <span style="color: purple">huge</span></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">Some C compilers may recognize other keywords. Consult a reference manual to obtain a complete list</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">of keywords for your particular compiler.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">Note that the keywords are all lowercase. Since uppercase and lowercase characters are not equivalent, it</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">is possible to utilize an uppercase keyword as an identifier.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">Keywords කියන්නේ සරලවම කිව්වොත් C language එකෙන් යම්කිසි වැඩක් කරගන්න තියෙන විශේෂිත පද වේ. </span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">උදාහරණයක් විදිහට int යනු intiger යන්න හැදින්වීමට C Compiler එකේ ඇති විශේෂණ වූ පදයයි. මෙහිදී int number ; ලෙසට ප්රෝග්රෑම් එක තුල codes ලියනු ලබයි. එනම් number යනු variable (number ට වෙනස් වන සුළු / විචල්ය) එකකි. number සදහා අගයන් ආදේශ කිරීමක් සිදුවේ (මේ ගැන පසුවට වැඩි විස්තර කතා කරමු) (intiger යනු 1,2,3,4,.... වැනි පුර්ණ සංක්යා වේ.)</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"><strong><u>Identifiers.</u></strong></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">එනම් අප විසින් define කරගත යුතු words වේ.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">ඉහත උදාහරණයේ අප numbers ලෙස define කරගත් පදය identifier ලෙස හදුන්වයි.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">ldentzfiers are names that are given to various program elements, such as variables, functions and arrays.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">Identifiers consist of letters and digits, in any order, except that the first character must be a letter. Both</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">upper- and lowercase letters are permitted, though common usage favors the use of lowercase letters for most</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">types of identifiers. Upper- and lowercase letters are not interchangeable (i.e., an uppercase letter is not</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">equivalent to the corresponding lowercase letter.) The underscore character ( - ) can also be included, and is</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">considered to be a letter. An underscore is often used in the middle of an identifier. An identifier may also</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">begin with an underscore, though this is rarely done in practice.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">The following names are valid identifiers.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">X Y12 sum-1 -temperature</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">names area tax-r ate TABLE</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">The following names are not valid identifiers for the reasons stated.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">4th The first character must be a letter.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">"x" Illegal characters ("").</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">order-no Illegal character (-).</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">error flag Illegal character (blank space).</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">int int is a keyword.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"><strong><u>DATA TYPES</u></strong></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">>> Data type is a set of data values and a set of operations on those walues.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">>> Data types are normally devide into two parts.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"> <1> Built-in data type. (int char float double)</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"> <2> Programer defined data types. (arrays, structurs)</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">මේක ගැන මේ විස්තරය දැන් අපි තේරුම් ගමු.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">මුලින්ම </span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">int කියන්නේ intiger අගයක් </span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">char කියන්නේ character variable එකක්, එනම් a-z and A-Z and 0-9 ඕනෙම දෙයක් මේකෙන් කියන්න පුළුවන්.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">float කියන්නේ දශම සංක්යාවක්.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">double කියන්නේ ගොඩක් ලොකු දශම සංක්යාවක්.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px">මේ හතර තමයි මුලිකම keywords හතර.</span></span></p><p><span style="color: RoyalBlue"><span style="font-size: 18px"></span></span></p><p><span style="color: DarkRed"><span style="font-size: 15px"></span></span></p><p><span style="color: DarkRed"><span style="font-size: 15px">ප්රෝග්රෑම් එකක් ලියන හැටි ගැනයි, අපි ලියන මුල්ම ප්රෝග්රෑම් එකයි අපි ඊලග පාඩමෙන් කතා කරමු. මේක ගැන තියන ප්රශ්න , යෝජනා , චෝදනා සේරම මට කියන්න යාලුවනේ. </span></span></p><p><span style="color: DarkRed"><span style="font-size: 15px">ඉක්මනටම ඊලග පාඩමෙන් හම්බුවෙමු. හැමෝටම ජය වේවා! බුදුසරණයි!</span></span></p></blockquote><p></p>
[QUOTE="emask, post: 15498893, member: 485158"] [COLOR="DarkRed"][SIZE="5"]ඔන්න එහෙනම් අද මම මේකේ දෙවෙනි පාඩම පටන් ගත්ත. පලවෙනි පාඩමට මේ ලින්ක් එකෙන් යන්න [url]http://www.elakiri.com/forum/showthread.php?t=1573406[/url] මම මෙතනදී ටිකක් විතර English වලින් උගන්නන්න හැදුවේ, එත් මම වැදගත් කටස් සිංහලෙන්ම විස්තර කරලා දෙන්නම්. එහෙම හොදි නේද යාලුවනේ.... :) ඔන්න එහෙනම් පටන් ගත්ත....[/SIZE][/COLOR] [COLOR="RoyalBlue"][SIZE="5"]THE C CHARACTER SET C uses the uppercase letters A to Z, the lowercase letters a to z, the digits 0 to 9, and certain special characters as building blocks to form basic program elements (e.g., constants, variables, operators, expressions, etc.). ඔක්කොම C වල Characters 92යි. [B][U]Keywords [/U][/B] There are certain reserved words, called keywords, that have standard, predefined meanings in C. These keywords can be used only for their intended purpose; they cannot be used as programmer-defined identifiers. The standard keywords are auto [COLOR="Black"]extern[/COLOR] [COLOR="Purple"]sizeof[/COLOR] break [COLOR="Black"]floatn [/COLOR] [COLOR="purple"]static[/COLOR] case [COLOR="black"]for[/COLOR] [COLOR="purple"]struct[/COLOR] char [COLOR="black"]got[/COLOR] [COLOR="purple"]switch[/COLOR] const [COLOR="black"]if [/COLOR] [COLOR="purple"]typedef[/COLOR] continue [COLOR="black"]int [/COLOR] [COLOR="purple"]union[/COLOR] default [COLOR="black"]long[/COLOR] [COLOR="purple"]unsigned[/COLOR] do [COLOR="black"]register[/COLOR] [COLOR="purple"]void[/COLOR] double [COLOR="black"]return [/COLOR] [COLOR="purple"]volatile[/COLOR] else [COLOR="black"] short[/COLOR] [COLOR="purple"]while[/COLOR] enum [COLOR="purple"]signed[/COLOR] Some compilers may also include some or all of the following keywords. ada [COLOR="black"]far [/COLOR][COLOR="purple"] near[/COLOR] asm [COLOR="black"]for [/COLOR] [COLOR="purple"][COLOR="purple"]tran[/COLOR][/COLOR] [COLOR="black"]pascal[/COLOR] entry [COLOR="purple"]huge[/COLOR] Some C compilers may recognize other keywords. Consult a reference manual to obtain a complete list of keywords for your particular compiler. Note that the keywords are all lowercase. Since uppercase and lowercase characters are not equivalent, it is possible to utilize an uppercase keyword as an identifier. Keywords කියන්නේ සරලවම කිව්වොත් C language එකෙන් යම්කිසි වැඩක් කරගන්න තියෙන විශේෂිත පද වේ. උදාහරණයක් විදිහට int යනු intiger යන්න හැදින්වීමට C Compiler එකේ ඇති විශේෂණ වූ පදයයි. මෙහිදී int number ; ලෙසට ප්රෝග්රෑම් එක තුල codes ලියනු ලබයි. එනම් number යනු variable (number ට වෙනස් වන සුළු / විචල්ය) එකකි. number සදහා අගයන් ආදේශ කිරීමක් සිදුවේ (මේ ගැන පසුවට වැඩි විස්තර කතා කරමු) (intiger යනු 1,2,3,4,.... වැනි පුර්ණ සංක්යා වේ.) [B][U]Identifiers.[/U][/B] එනම් අප විසින් define කරගත යුතු words වේ. ඉහත උදාහරණයේ අප numbers ලෙස define කරගත් පදය identifier ලෙස හදුන්වයි. ldentzfiers are names that are given to various program elements, such as variables, functions and arrays. Identifiers consist of letters and digits, in any order, except that the first character must be a letter. Both upper- and lowercase letters are permitted, though common usage favors the use of lowercase letters for most types of identifiers. Upper- and lowercase letters are not interchangeable (i.e., an uppercase letter is not equivalent to the corresponding lowercase letter.) The underscore character ( - ) can also be included, and is considered to be a letter. An underscore is often used in the middle of an identifier. An identifier may also begin with an underscore, though this is rarely done in practice. The following names are valid identifiers. X Y12 sum-1 -temperature names area tax-r ate TABLE The following names are not valid identifiers for the reasons stated. 4th The first character must be a letter. "x" Illegal characters (""). order-no Illegal character (-). error flag Illegal character (blank space). int int is a keyword. [B][U]DATA TYPES[/U][/B] >> Data type is a set of data values and a set of operations on those walues. >> Data types are normally devide into two parts. <1> Built-in data type. (int char float double) <2> Programer defined data types. (arrays, structurs) මේක ගැන මේ විස්තරය දැන් අපි තේරුම් ගමු. මුලින්ම int කියන්නේ intiger අගයක් char කියන්නේ character variable එකක්, එනම් a-z and A-Z and 0-9 ඕනෙම දෙයක් මේකෙන් කියන්න පුළුවන්. float කියන්නේ දශම සංක්යාවක්. double කියන්නේ ගොඩක් ලොකු දශම සංක්යාවක්. මේ හතර තමයි මුලිකම keywords හතර. [/SIZE][/COLOR] [COLOR="DarkRed"][SIZE="4"] ප්රෝග්රෑම් එකක් ලියන හැටි ගැනයි, අපි ලියන මුල්ම ප්රෝග්රෑම් එකයි අපි ඊලග පාඩමෙන් කතා කරමු. මේක ගැන තියන ප්රශ්න , යෝජනා , චෝදනා සේරම මට කියන්න යාලුවනේ. ඉක්මනටම ඊලග පාඩමෙන් හම්බුවෙමු. හැමෝටම ජය වේවා! බුදුසරණයි![/SIZE][/COLOR] [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom