TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Programming

what are variables?

Programming

 
Reply
Thread Tools Display Modes
Unread 01-07-2013, 12:02 PM   #1
Advanced Member (250+)
Thread Starter
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 65 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


what are variables?

what are vaiables?

Sponsored Links
shan123 is offline   Reply With Quote
Unread 01-07-2013, 12:04 PM   #2
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 75 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: what are variables?

A variable is nothing but a name given to a storage area that our programs can manipulate.
sahabcse is offline   Reply With Quote
Unread 01-07-2013, 12:04 PM   #3
Advanced Member (250+)
Thread Starter
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 65 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


Re: what are variables?

is dere any type?
shan123 is offline   Reply With Quote
Unread 01-07-2013, 12:05 PM   #4
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 75 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: what are variables?

yes int,char,float,long,double
sahabcse is offline   Reply With Quote
Unread 01-07-2013, 12:05 PM   #5
Advanced Member (250+)
Thread Starter
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 65 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


Re: what are variables?

what is d use of dis..and how to declare
shan123 is offline   Reply With Quote
Unread 01-07-2013, 12:07 PM   #6
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 75 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: what are variables?

for integer type use int,for floating point numbers us float..
to declare use dis syntex
int a=5;
where int is the data type,a is the name of the variable, and 5 is the value assigned to a
sahabcse is offline   Reply With Quote
Unread 01-07-2013, 12:08 PM   #7
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 75 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: what are variables?

Sponsored Links
#include <stdio.h>

int main ()
{
/* variable declaration: */
int a, b;
int c;
float f;

/* actual initialization */
a = 10;
b = 20;

c = a + b;
printf("value of c : %d \n", c);

f = 70.0/3.0;
printf("value of f : %f \n", f);

return 0;
}

Sponsored Links
sahabcse is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Variables. Gobinath C#(C Sharp) 6 01-12-2007 12:54 PM
Sum up variables Christian Microsoft Dynamics CRM 7 28-11-2007 10:04 AM
get-content csv with two variables Gregor Kurth Microsoft Windows Powershell 1 23-10-2007 10:19 PM
environmental variables Joe Bloggs Debian Linux 8 18-10-2007 09:19 PM
environment variables Mike Unix 3 15-09-2007 05:43 AM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 04:56 AM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional