hi
send me solution of this asignment
Write a program using malloc function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format?
Hint: User enters 3 then program allocates equal to 9 integer memories.
Output:1
Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4
Output:2
Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16
18 2423
I must say that's a useful hint!!
hi
send me solution of this asignment
Write a program using malloc function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format?
Hint: User enters 3 then program allocates equal to 9 integer memories.
Output:1
Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4
Output:2
Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16
We don't just give you the solution...Thats why people fail out of computer science courses. If you'd work on it yourself and then bring to us your questions we could help you then.
We don't just give you the solution...Thats why people fail out of computer science courses. If you'd work on it yourself and then bring to us your questions we could help you then.
No, that is how you give a school a bad rap. ;)
You get some looser saying that they have got a degree or certificate in something, they get hired and the moron can't do anything. The company then fires the idiot, black lists him/her and the school from within the company and all other companies they know.
But HIRA HAMEED isn’t one of those. S/he is one to do the work and post a question when s/he gets stuck. RIGHT?
Adrian
hi
send me solution of this asignment
Write a program using malloc function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format?
Hint: User enters 3 then program allocates equal to 9 integer memories.
Output:1
Enter a single digit number:
2
The multiplication table of 2 is:
1 2
----------------
1| 1 2
2| 2 4
Output:2
Enter a single digit number:
4
The multiplication table of 4 is:
1 2 3 4
--------------------------------
1| 1 2 3 4
2| 2 4 6 8
3| 3 6 9 12
4| 4 8 12 16
Don't be so rude,give OP a full solution. Here ,u go.
Now make sure that u understand it.OK?
Savage
Don't be so rude,give OP a full solution. Here ,u go.
Now make sure that u understand it.OK?
Savage
Oh come on, that is being rude!
Oh come on, that is being rude!
I'm on the fence on that one.
Adrian
I'm on the fence on that one.
Adrian
Agreed, while it's not the nicest approach, people that don't read the rules really do need to be told
Agreed, while it's not the nicest approach, people that don't read the rules really do need to be told
I was only joking and that's a good point. Almost every day there at least 2 or 3 new threads going like this:
Problem plzplzplz due tom
<assignment copied and pasted>
plzplzplz its really urgent
I was only joking and that's a good point. Almost every day there at least 2 or 3 new threads going like this:
Problem plzplzplz due tom
<assignment copied and pasted>
plzplzplz its really urgent
Yea,is it possibly ,when new user is registering, to put on a posting guidelines like one of condtions to join the site?
Savage
Yea,is it possibly ,when new user is registering, to put on a posting guidelines like one of condtions to join the site?
Savage
You mean the conditions that you just press the "Accept Checkbox" without ever looking at?
Yea,is it possibly ,when new user is registering, to put on a posting guidelines like one of condtions to join the site?
Savage
Post it in the Feedback forum.
Adrian
Post it in the Feedback forum.
Adrian
Good idea,thanks..
Savage
You mean the conditions that you just press the "Accept Checkbox" without ever looking at?
No,I mean condition which must be readed.It should be maded so that user can countinue registration only if he has scrolled to the bottom of the posting guidelines and if atleast 10 minutes have passed.
Savage
No,I mean condition which must be readed.It should be maded so that user can countinue registration only if he has scrolled to the bottom of the posting guidelines and if atleast 10 minutes have passed.
Savage
Haha 10 minutes...and the site registration would plummet to zero :P People would just think the site freezed up.
Haha 10 minutes...and the site registration would plummet to zero :P People would just think the site freezed up.
hahah,then we write with big bold characters:
"The site is not frozen.Plese read posting guidelines to continue.U have 10 minutes left"
Savage
hahah,then we write with big bold characters:
"The site is not frozen.Plese read posting guidelines to continue.U have 10 minutes left"
Savage
What if they are a speed reader? :D
Adrian
What if they are a speed reader? :D
Adrian
Allready answered in Feedback forum..
Savage
Erm... getting back OT....
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Joseph |
last post by:
I am trying to create a function that allocates memory for the matrix
through a function; like the code below. However, this does not seem to
work since I believe that the scope of the memory...
|
by: Richard Hunt |
last post by:
I'm sorry for asking such a silly question, but I can't quite get my head
around malloc. Using gcc I have always programmed in a lax C/C++ hybrid
(which I suppose is actually c++). But I have...
|
by: Brian Blais |
last post by:
Hello,
I saw on a couple of recent posts people saying that casting the return
value of malloc is bad, like:
d=(double *) malloc(50*sizeof(double));
why is this bad? I had always thought...
|
by: Rano |
last post by:
/*
Hello,
I've got some troubles with a stupid program...
In fact, I just start with the C language and sometime
I don't understand how I really have to use malloc.
I've readden the FAQ...
|
by: spasmous |
last post by:
main()
{
float * f;
initialize_f(f);
// ...use f for processing
free(f);
}
|
by: lovecreatesbeauty |
last post by:
Hello experts,
1. Does C guarantee the data layout of the memory allocated by malloc
function on the heap. I mean, for example, if I allocate a array of 100
elements of structure, can I always...
|
by: James Dow Allen |
last post by:
The gcc compiler treats malloc() specially! I have no
particular question, but it might be fun to hear from
anyone who knows about gcc's special behavior.
Some may find this post interesting;...
|
by: Jorge Peixoto de Morais Neto |
last post by:
I was reading the code of FFmpeg and it seems that they use malloc
just too much. The problems and dangers of malloc are widely known.
Malloc also has some overhead (although I don't know what is...
|
by: desktop |
last post by:
I have read in Bjarne Stroustrup that using malloc and free should be
avoided in C++ because they deal with uninitialized memory and one
should instead use new and delete.
But why is that a...
|
by: somenath |
last post by:
Hi All,
I have one question regarding return value cast of malloc.
I learned that we should not cast the return value of malloc because
it is bug hider.
But my question is as mentioned...
|
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
|
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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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: 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...
| |