LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2004, 04:59 AM   #1
sibtay
Member
 
Registered: Aug 2004
Location: U.S
Distribution: Ubuntu
Posts: 145

Rep: Reputation: 15
what does this instruction mean


what does this instruction mean?

unsigned char temp:2

ofcourse i know a variable named temp of type unsigned char is being declared

but what is :2 for?
 
Old 08-17-2004, 05:19 AM   #2
BlueKnight
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
Quote:
but what is :2 for?
This declares a two bit wide variable.
 
Old 08-17-2004, 05:38 AM   #3
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Note: It's only a valid definition inside a struct.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking 'hlt' Instruction... daurnimator Linux - General 8 05-11-2005 06:24 AM
assembly instruction - pushl - what it does? mehuljv Programming 7 04-23-2005 03:33 AM
Checking for Hlt instruction mingy Linux - General 3 03-27-2005 04:47 AM
mmm instruction help... Beppe83 Linux - Software 1 05-31-2004 07:57 AM
Illegal instruction madsjakob Linux - Software 0 10-28-2003 07:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration