ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What are variables in C?

What are variable declarations and assignment statement s? The statement var1=100; Is this an assignment statement Is it true that only1st32 characters of a variable are recognized?

user-image
تم إضافة السؤال من قبل Subhranshu Ganguly , Quality Analyst. , WIPRO
تاريخ النشر: 2013/12/26
Emad Mohammed said abdalla
من قبل Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company

I agree with the answer added by:

SIRISHA APPISETTY   SIRISHA APPISETTY

SIRISHA APPISETTY 

Follow

 

 

مستخدم محذوف‎
من قبل مستخدم محذوف‎

Declaring a variable means assigning memory to the variable. means when ever we declare a variable according to it's type means int, float or char or something else. it aquires space in computer memory.

And var1=100 is assigning because "=" is an assignment operator. 

No it is not true because it is system dependent thing.

مستخدم محذوف‎
من قبل مستخدم محذوف‎

 

          Variables in C have the same meaning as variables in algebra.  That is, they represent some unknown, or variable, value.

x = a + b

z +2 =3(y -5)

          Remember that variables in algebra are represented by a single alphabetic character.

مستخدم محذوف‎
من قبل مستخدم محذوف‎

1 ) In computer programming, a variable or scalar is a storage location and an associated symbolic name which contains some known or unknown quantity or information, a value. The variable name is the usual way to reference the stored value; this separation of name and content allows the name to be used independently of the exact information it represents. The identifier in computer source code can be bound to a value during run time, and the value of the variable may thus change during the course of program execution. Variables in programming may not directly correspond to the concept of variables in mathematics. The value of a computing variable is not necessarily part of an equation or formula as in mathematics. In computing, a variable may be employed in a repetitive process -- assigned a value in one place, then used elsewhere, then reassigned a new value and used again in the same way . Variables in computer programming are frequently given long names to make them relatively descriptive of their use, whereas variables in mathematics often have terse, one- or two-character names for brevity in transcription and manipulation.

 

 

المزيد من الأسئلة المماثلة