by: nsgi_2004 |
last post by:
I have a C book that says the sizeof a char is one byte. Is this true for
C++?
|
by: José de Paula |
last post by:
Is it a given that sizeof(char) always yields 1, no matter the
implementation? I ask because I saw some critics against
char * ptr = malloc (sizeof(char) * NUM);
in favour of simply
char * ptr...
|
by: M Welinder |
last post by:
This doesn't work with any C compiler that I can find. They all report a
syntax error:
printf ("%d\n", (int)sizeof (char)(char)2);
Now the question is "why?" "sizeof" and "(char)" have...
|
by: Sunner Sun |
last post by:
Hi, all
FAQ of comp.lang.c said "In C, type char is defined as occupying one
byte, so it is usually 8 bits".
(http://www.eskimo.com/~scs/cclass/notes/sx2a.html)
But I found in C99 that "An...
|
by: davidb |
last post by:
Hi,
does someone know how to get the length of a 2 dimensional string
array:
here what i need:
----------------------------------------------------------------
char **getList(void){
char...
|
by: svlsr2000 |
last post by:
Here is a small program which i saw a couple of years ago.
#include<stdio.h>
int main()
{
char x;
if(sizeof(int)==sizeof('a'))
printf("\n C compiler\n");
...
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|