473,882 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

many question on C

hello experts plz answer following questions::: thanks in advance.

1. Out of fgets() and gets() which function is safe to use and why?
2. What is a far pointer? where we use it?
3. What does the error 'Null Pointer Assignment' mean and what causes
this error?
4. What is near, far and huge pointers? How many bytes are occupied by
them?
5. How would you obtain segment and offset addresses from a far
address of a memory location?
6. What are bit fields? What is the use of bit fields in a Structure
declaration?
7. To which numbering system can the binary number 110110010011110 0 be
easily converted to?
8. Which bit wise operator is suitable for checking whether a
particular bit is on or off?
9. How can you increase the size of a dynamically allocated array?
10. When reallocating memory if any other pointers point into the same
piece of memory do you have to readjust these other pointers or do
they get readjusted automatically?
11. What is object file? How can you access object file?
12. What do the functions atoi(), itoa() and gcvt() do?
bye,
reply me at de************* *@rediffmail.co m
Nov 13 '05
62 9215
"jacob navia" <ja*********@ja cob.remcomp.fr> wrote in message news:<bk******* ***@news-reader1.wanadoo .fr>...
"R. Rajesh Jeba Anbiah" <ng**********@r ediffmail.com> wrote in message
news:ab******** *************** ***@posting.goo gle.com...
ss********@yaho o.com (messier8182) wrote in message news:<e1******* *************** ***@posting.goo gle.com>...


He is a student in India, trying to get by without doing his/her homework.
He may be a enthusiastic student or a professor or a programmer. But,
I'm sure the questions are not homework problems.
No. This student knew enough to post a message in c.l.c to avoid working for
his/her homework.
All the people who know CLC are not smarter; in my experience even
people who post arrogant answers like RTFM or fun answers are not even
experts.
Indian people are very advanced in Internet using,
they have their own computer hardware/software, some super computers have
been built in India,
I guess, you're talking about those elite people who is less than 1%
of total population.
I do not doubt that there are expert Indian programmers. Mathematics has
a long tradition in India, and they have bright people.


That is certainly because of lack of resources. We have resources on
Mathematics that are of 10,000 years old. We have the resources that
say 0!=0 (which most of the non-Indians don't know or accept). But, we
don't have much resources on Computers. I don't know, how would you
learn C, if you don't have a PC or a book...

Well, my intention is not to mess with you or to start another flame
war. My intention was to tell the truth that how such a fun answer
will hurt a humanbeing who lag others purely because of resources.

IOW, you're hunger for a bread; you ask your neighbour. He may tell
you "get it from shop" or "sorry, I don't have it". Instead he tells
you "Yes I have it" and gives you bunch of bullshits; think for a
while, how would you feel....

EOD
---
"I don't believe in the God who doesn't give me food, but shows me
heaven!"--Swami Vivekanandha
http://guideme.itgo.com/atozofc/ - "A to Z of C" Project
Email: rrjanbiah-at-Y!com
Nov 13 '05 #31
R. Rajesh Jeba Anbiah wrote:

"jacob navia" <ja*********@ja cob.remcomp.fr> wrote in message
news:<bk******* ***@news-reader1.wanadoo .fr>...
"R. Rajesh Jeba Anbiah" <ng**********@r ediffmail.com>
wrote in message
news:ab******** *************** ***@posting.goo gle.com...
ss********@yaho o.com (messier8182) wrote in message

news:<e1******* *************** ***@posting.goo gle.com>...


He is a student in India,
trying to get by without doing his/her homework.


He may be a enthusiastic student or a professor
or a programmer.
But, I'm sure the questions are not homework problems.


Countless,
is the number of times that I've pondered this point,
while programming:

"To which numbering system can the binary number
110110010011110 0 be easily converted to?"

--
pete
Nov 13 '05 #32
"LibraryUse r" <de**********@m ade.invalid> wrote in message news:3F******** *******@made.in valid...
For example, you are posting with excessively long lines (they
should never exceed 79, better 65, chars) and thus causing either
ugly reply formatting or the effort to reformat your words.


The prosecution rests, m'lud.

--
#include <stdio.h>
char*f="#includ e <stdio.h>%cchar *f=%c%s%c;%cint main(void){prin tf(f,10,34,f,34 ,10,10);return 0;}%c";
int main(void){prin tf(f,10,34,f,34 ,10,10);return 0;}
Nov 13 '05 #33
ng**********@re diffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<ab******* *************** ****@posting.go ogle.com>...
"jacob navia" <ja*********@ja cob.remcomp.fr> wrote in message news:<bk******* ***@news-reader1.wanadoo .fr>...
"R. Rajesh Jeba Anbiah" <ng**********@r ediffmail.com> wrote in message
news:ab******** *************** ***@posting.goo gle.com...
ss********@yaho o.com (messier8182) wrote in message news:<e1******* *************** ***@posting.goo gle.com>...


He is a student in India, trying to get by without doing his/her homework.


He may be a enthusiastic student or a professor or a programmer. But,
I'm sure the questions are not homework problems.


Even so, the answers to these questions are easily found in any good C
reference manual, for which this newsgroup is not meant to be a
substitute. This person needs to get into the habit of checking a
reference manual *first*, then doing a Web search, and *then* asking a
question here if he or she didn't find the answer he or she was
looking for.
No. This student knew enough to post a message in c.l.c to avoid working for
his/her homework.
All the people who know CLC are not smarter; in my experience even
people who post arrogant answers like RTFM or fun answers are not even
experts.


True enough.
Indian people are very advanced in Internet using,
they have their own computer hardware/software, some super computers have
been built in India,


I guess, you're talking about those elite people who is less than 1%
of total population.
I do not doubt that there are expert Indian programmers. Mathematics has
a long tradition in India, and they have bright people.


That is certainly because of lack of resources. We have resources on
Mathematics that are of 10,000 years old. We have the resources that
say 0!=0 (which most of the non-Indians don't know or accept). But, we
don't have much resources on Computers. I don't know, how would you
learn C, if you don't have a PC or a book...


Well, learning how to program in C without a PC available would be
difficult, to say the least. I don't know what the situation is like
in India, but I would think that there would be *some* reference
manuals available.

Well, my intention is not to mess with you or to start another flame
war. My intention was to tell the truth that how such a fun answer
will hurt a humanbeing who lag others purely because of resources.

But we can't know that, can we? For all we know this could be someone
with all the resources in the world available for use, and he or she
just chooses to be lazy. Unless we're told "I don't have a manual and
I can't use the Web", we have to assume they have the basic materials
available.

The truth is, hundreds of students *have* posted to this newsgroup
asking us to do their homework for them, or decided asking here was
simpler than looking it up in their handy reference manual. And it's
because of those people who are lazy and irresponsible that we tend to
be short with anyone asking basic questions.
IOW, you're hunger for a bread; you ask your neighbour. He may tell
you "get it from shop" or "sorry, I don't have it". Instead he tells
you "Yes I have it" and gives you bunch of bullshits; think for a
while, how would you feel....

I was once a clueless newbie, and I got spanked here myself some years
ago. And yet I keep coming back. Funny, that.
EOD
---
"I don't believe in the God who doesn't give me food, but shows me
heaven!"--Swami Vivekanandha
http://guideme.itgo.com/atozofc/ - "A to Z of C" Project
Email: rrjanbiah-at-Y!com

Nov 13 '05 #34
"John Bode" <jo*******@my-deja.com> wrote in message news:43******** *************** ***@posting.goo gle.com...

<....snip.... >
He may be a enthusiastic student or a professor or a programmer. But,
I'm sure the questions are not homework problems.
Even so, the answers to these questions are easily found in any good C
reference manual, for which this newsgroup is not meant to be a
substitute. This person needs to get into the habit of checking a
reference manual *first*, then doing a Web search, and *then* asking a
question here if he or she didn't find the answer he or she was
looking for.


Very true. But we could at least be civil in the way we tell someone his or
her post was inappropriate, couldn't we??

<....more snip....>
The truth is, hundreds of students *have* posted to this newsgroup
asking us to do their homework for them, or decided asking here was
simpler than looking it up in their handy reference manual. And it's
because of those people who are lazy and irresponsible that we tend to
be short with anyone asking basic questions.


.....and it's even shorter not to respond at all.

--
#include <stdio.h>
char*f="#includ e <stdio.h>%cchar *f=%c%s%c;%cint main(void){prin tf(f,10,34,f,34 ,10,10);return 0;}%c";
int main(void){prin tf(f,10,34,f,34 ,10,10);return 0;}
Nov 13 '05 #35
Slartibartfast wrote:
"John Bode" <jo*******@my-deja.com> wrote in message
news:43******** *************** ***@posting.goo gle.com...
The truth is, hundreds of students *have* posted to this newsgroup
asking us to do their homework for them, or decided asking here was
simpler than looking it up in their handy reference manual. And it's
because of those people who are lazy and irresponsible that we tend to
be short with anyone asking basic questions.


....and it's even shorter not to respond at all.


But that encourages the idea that it's OK to ask without thinking
first, and we don't want to do that either.

--
Chris "electric hedgehog" Dollin
C FAQs at: http://www.faqs.org/faqs/by-newsgrou...mp.lang.c.html
C welcome: http://www.angelfire.com/ms3/bchambl...me_to_clc.html
Nov 13 '05 #36
R. Rajesh Jeba Anbiah wrote:
"jacob navia" <ja*********@ja cob.remcomp.fr> wrote in message
news:<bk******* ***@news-reader1.wanadoo .fr>...

He is a student in India, trying to get by without doing his/her
homework.
He may be a enthusiastic student or a professor or a programmer. But,
I'm sure the questions are not homework problems.


They sure look like homework questions to me. What makes you so sure they're
not?
No. This student knew enough to post a message in c.l.c to avoid working
for his/her homework.


All the people who know CLC are not smarter;


It is true that many people who use comp.lang.c are not smarter than the
O.P., but - alas - that doesn't stop them from posting here.
in my experience even
people who post arrogant answers like RTFM or fun answers are not even
experts.
I looked through some of your C material at the URL mentioned in your sig
block - <http://guideme.itgo.co m/atozofc/> - what you call the "A to Z of
C" Project. I don't think you're in a position to judge who here is an
expert and who is not.
Indian people are very advanced in Internet using,
they have their own computer hardware/software, some super computers have
been built in India,


I guess, you're talking about those elite people who is less than 1%
of total population.


Irrelevant. The comp.lang.c newsgroup doesn't really care about your kit.
They do care, however, about your manners. "Do my homework" articles are
considered ill-mannered, and attract hostile replies like syrup attracts
wasps. But "I'm doing my ISO C homework and I got stuck; here's the
question, and here's my best answer so far, but it doesn't work; could you
help?" articles are considered well-mannered and are treated much more
sympathetically .

<snip>
Well, my intention is not to mess with you or to start another flame
war. My intention was to tell the truth that how such a fun answer
will hurt a humanbeing who lag others purely because of resources.
I don't buy it. The OP was after a free ride.
IOW, you're hunger for a bread; you ask your neighbour. He may tell
you "get it from shop" or "sorry, I don't have it". Instead he tells
you "Yes I have it" and gives you bunch of bullshits; think for a
while, how would you feel....


I guess I would feel hungry, embarrassed at having asked such a stupid
question, and motivated to learn C programming properly and
enthusiasticall y so that I could get a job and henceforth afford to buy my
own bread.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #37
"Slartibartfast " <sl******@thhgt tg.net> wrote in message news:<bk******* ***@coset.qualc omm.com>...
"John Bode" <jo*******@my-deja.com> wrote in message news:43******** *************** ***@posting.goo gle.com...

<....snip.... >
He may be a enthusiastic student or a professor or a programmer. But,
I'm sure the questions are not homework problems.
Even so, the answers to these questions are easily found in any good C
reference manual, for which this newsgroup is not meant to be a
substitute. This person needs to get into the habit of checking a
reference manual *first*, then doing a Web search, and *then* asking a
question here if he or she didn't find the answer he or she was
looking for.


Very true. But we could at least be civil in the way we tell someone his or
her post was inappropriate, couldn't we??


I try. Sometimes I fail. Sometimes being civil just doesn't work.

<....more snip....>
The truth is, hundreds of students *have* posted to this newsgroup
asking us to do their homework for them, or decided asking here was
simpler than looking it up in their handy reference manual. And it's
because of those people who are lazy and irresponsible that we tend to
be short with anyone asking basic questions.


....and it's even shorter not to respond at all.


Which accomplishes what, exactly? Better to confront ignorance up
front and risk some hurt feelings than let that ignorance continue.
I'd rather have you pissed off and thinking for yourself than happy
and spoon fed.
Nov 13 '05 #38
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote in message news:<bk******* ***@sparta.btin ternet.com>...
R. Rajesh Jeba Anbiah wrote:
He may be a enthusiastic student or a professor or a programmer. But,
I'm sure the questions are not homework problems.


They sure look like homework questions to me. What makes you so sure they're
not?


I'm 99.99% sure that this guy's questions are not homework problems.
This guy seems to be more enthusiastic to find the answers for the
questions that he found on some of the Indian based books. I guess, he
is preparing for an interview (his 'c' & 'v' in argc, argv question
sounds so).
in my experience even
people who post arrogant answers like RTFM or fun answers are not even
experts.


I looked through some of your C material at the URL mentioned in your sig
block - <http://guideme.itgo.co m/atozofc/> - what you call the "A to Z of
C" Project. I don't think you're in a position to judge who here is an
expert and who is not.


If I understand right, you're personally commenting about my stuff or
you've misunderstood that I'm claiming myself as RJH or you didn't
understand what I said.

<quote>in my experience even people who post arrogant answers like
RTFM or fun answers are not even experts</quote>

This is my experience with NG: once I was too stupid than now and had
more curious questions, I would post the questions. Often I would get
flames and RTFM or RTFFAQ answers. Then, I would reply to that person:
"Well, I have referred the FAQ and I couldn't find any better
solution, that's why I have posted the question"---thinking that
person is expert. But, most of the time, those people would respond
that those guys are even small kids who don't know the answer really.
I think, people prefer to act like an arrogant expert to gain some
sort of appreciation. See, I'm not generalising my opinion.

Well, my intention is not to mess with you or to start another flame
war. My intention was to tell the truth that how such a fun answer
will hurt a humanbeing who lag others purely because of resources.


I don't buy it. The OP was after a free ride.


Sorry I couldn't understand what do you mean here (My first language
is Tamil)
IOW, you're hunger for a bread; you ask your neighbour. He may tell
you "get it from shop" or "sorry, I don't have it". Instead he tells
you "Yes I have it" and gives you bunch of bullshits; think for a
while, how would you feel....


I guess I would feel hungry, embarrassed at having asked such a stupid
question, and motivated to learn C programming properly and
enthusiasticall y so that I could get a job and henceforth afford to buy my
own bread.


I'm afraid, if you're not affected by "hurts", then obviously you're
not a humanbeing---you must be a god.

---
"Learn from yesterday, live for today, hope for tomorrow. The
important thing is to not stop questioning."--Albert Einstein
http://guideme.itgo.com/atozofc/ - "A to Z of C" Project
Email: rrjanbiah-at-Y!com
Nov 13 '05 #39
R. Rajesh Jeba Anbiah <ng**********@r ediffmail.com> scribbled the following:
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote in message news:<bk******* ***@sparta.btin ternet.com>...
I don't buy it. The OP was after a free ride.
Sorry I couldn't understand what do you mean here (My first language
is Tamil)


Translation:

"I do not believe that is true. What the OP wanted was to have his work
done for him so he would not have to bother actually *thinking* about
C code, when he could just pass ready-written answers without
understanding them himself."

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"When a man talks dirty to a woman, that's sexual harassment. When a woman talks
dirty to a man, that's 14.99 per minute + local telephone charges!"
- Ruben Stiller
Nov 13 '05 #40

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

Similar topics

8
1784
by: Greg | last post by:
Hello, I've to manage many 'table' (having same scheme) on the same server. And I ask myself what could be the best to do (and if you know, why) : Creating as many database (the name would be a 8byte int value (converted to a string)) as necessary, all with the same table struct (and table name), or create 1 database and in it create also as many table as necessary (so also a 8byte int value as name) ?
3
2010
by: Mikey | last post by:
Hi all. In the process of trying to figure this thing out, I've been doing the old "stand around in the store and read as much as possible before you look like a derelict" thing. This time, with the O'Reilly "Managing and Using SQL" (I think that's it). Anyway, I was looking at a chapter discussing database design (without any direct reference to impementations in MySQL), and they mention Obj/Relationaldesign as a way to have a...
2
908
by: Keith | last post by:
I am having a problem creating a many-to-many-to-many type relationship. It works fine, but when I create a view to query it and test it, it does not generate the results I expected. Below if the DDL for the tables and the SQL for the view.
5
447
by: oNLINE bUDDY | last post by:
How can you reverse a many-to-many XML structure between 2 tags? Lets say we have a books/author XML file. A book can have many authors. <book1> <Author1> </Author1> </book1>
2
2708
by: Megan | last post by:
hello everybody, i know this is a very long post, but i wanted to provide as much detail as possible. quick overview- i want to create a couple of many to many relationships and am wondering how many relationships to create. i am also trying to figure out what relationships to create.
1
1906
by: Johnny Meredith | last post by:
Hi, I'm building a database that, once a year, generates surveys that are emailed to people in our organization. The recipients of the surveys are managers of various departments. The emails must list each department manager that reports to the recipient. For example: John Doe - Director - Department 10 (recipient of the email) Reporting Managers: Jane Doe - Manager - Department 10A
1
2625
by: Phil W | last post by:
Hello, I have set up my database in access using many to many relationships (it's the good ol' books and authors one again). I've actually extended it to include other people who contribute in various ways to the books (e.g. editors, illustrators etc), so there's more than one many to many relationship there. When there's an entry in all the tables relating to the book I want to view, everything works fine (i.e. there's an author in...
13
1891
by: the other john | last post by:
The trouble currently with 3 tables. I'm excluding non-relevant fields... tbl_users PK_user_ID tbl_developers PK_developer_ID FK_developer_user_ID FK_developer_project_ID
1
2722
by: radiodave | last post by:
I don't know how to ask this question but I'll try: I'm making a database (Access 2003) for an Opera buff. I have tables related like: each Opera has many Productions (Madame Butterfly has an SF Opera production) each Opera has many Roles (Madame Butterfly has Cio-Cio-San) each Role has many Persons (Cio-Cio-San is played by Patricia Racette) But the Person playing the Role depends on the Production. So, just like the program you get...
11
10635
by: RobertJohn | last post by:
Hi all I am using Access 2007 to start a small home library application, and so far it has two tables. 1. Books, with fields Book_ID (Primary Key) and Title, and 2. Authors, with fields Author_ID (Primary Key), First_Name and Last_Name. Both tables will be expanded later, after I have solved my current problem Because one book can have multiple authors, and because one author can have several books, I want to use a many-to-many...
0
9777
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11108
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10725
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10830
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7956
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7113
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.