473,382 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

sizeof, is it a macro? function? or operation?

I found sizeof in table of Precedence hierarchy for C.

is it a operation? which have precedence..?

Nov 13 '05 #1
5 4971
In article <bo**********@news1.kornet.net>, Park, SungJae wrote:
I found sizeof in table of Precedence hierarchy for C.

is it a operation? which have precedence..?


It's a unitary operator (operator taking one operand, just
like unitary minus). Its precedence is shown in the table you
refered to.

--
Andreas Kähäri
Nov 13 '05 #2
Andreas Kahari wrote:

In article <bo**********@news1.kornet.net>, Park, SungJae wrote:
I found sizeof in table of Precedence hierarchy for C.

is it a operation? which have precedence..?


It's a unitary operator (operator taking one operand, just
like unitary minus). Its precedence is shown in the table you
refered to.


The standard uses the word "unary" instead of "unitary"
to describe operators taking only one operand.

--
pete
Nov 13 '05 #3
In article <3F***********@mindspring.com>, pete wrote:
Andreas Kahari wrote:

[cut]
It's a unitary operator (operator taking one operand, just
like unitary minus). Its precedence is shown in the table you
refered to.


The standard uses the word "unary" instead of "unitary"
to describe operators taking only one operand.


I *did* think it looked a bit funny when I wrote it...

--
Andreas Kähäri
Nov 13 '05 #4
In <bo**********@news1.kornet.net> "Park, SungJae" <da*****@darkcity.siregi.net> writes:
I found sizeof in table of Precedence hierarchy for C.

is it a operation? which have precedence..?


Did you read the title of the table carefully? In my C book, it's
called "Precedence and Associativity of Operators". What do you think
"operators" stands for?

And, anyway, I'm pretty sure your C book provides a description of the
sizeof "thing". Check its index.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #5
On Wed, 5 Nov 2003 15:36:24 +0000 (UTC), in comp.lang.c , Andreas
Kahari <ak*******@freeshell.org> wrote:
In article <3F***********@mindspring.com>, pete wrote:
Andreas Kahari wrote:

[cut]
It's a unitary operator (operator taking one operand, just
like unitary minus). Its precedence is shown in the table you
refered to.


The standard uses the word "unary" instead of "unitary"
to describe operators taking only one operand.


I *did* think it looked a bit funny when I wrote it...


"unitary" is a type of local government in the UK.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Metzen | last post by:
hello, ok, I want to find the length of an int array that is being passed to a function: main() { int array={1,2,3,4,5,6,7,8}; function(array); } function(int *array) {
7
by: Newbie_sw2003 | last post by:
Where should I use them? I am giving you my understandings. Please correct me if I am wrong: MACRO: e.g.:#define ref-name 99 The code is substituted by the MACRO ref-name. So no overhead....
687
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
42
by: Christopher C. Stacy | last post by:
Some people say sizeof(type) and other say sizeof(variable). Why?
32
by: Abhishek Srivastava | last post by:
Hi, Somebody recently asked me to implement the sizeof operator, i.e. to write a function that accepts a parameter of any type, and without using the sizeof operator, should be able to return...
43
by: Richard | last post by:
Could someone point me to why "sizeof x" is/isnt preferable to "sizeof(x)",
4
by: vijay | last post by:
hi, if you see assembly then sizeof operator has sizeof(type) or sizeof(variable) at compile time. How does C compiler gets value at compiler time.? How can we implement sizeof operator? the...
10
by: Yevgen Muntyan | last post by:
Consider the following macro: #define ALLOCIT(Type) ((Type*) malloc (sizeof (Type))) The intent is to wrap raw memory allocation of N bytes into a macro which returns allocated chunk of memory...
11
by: nevergone | last post by:
Hello Everybody In <<Modern C++ Design>Compile-Time Assertions there is : template <boolstruct CompileTimeChecker { CompileTimeChecker(...); }; template <struct CompileTimeChecker<false{ };
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.