Which of the following C language code is used to create a new node in the singly
Question:
Which of the following C language code is used to create a new node in the singly linear linked list.
A. ptr = (LIST*) malloc(sizeof(LIST));
B. *ptr = (LIST*) malloc(LIST);
C. ptr = (LIST*) malloc(sizeof(LIST*));
D. ptr = (LIST) malloc(sizeof(LIST));
Transcribed Image Text:
{ } struct node int data; struct node * next; typedef struct node LIST; LIST*ptr;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (2 reviews)
Answered By
Aysha Ali
my name is ayesha ali. i have done my matriculation in science topics with a+ . then i got admission in the field of computer science and technology in punjab college, lahore. i have passed my final examination of college with a+ also. after that, i got admission in the biggest university of pakistan which is university of the punjab. i am studying business and information technology in my university. i always stand first in my class. i am very brilliant client. my experts always appreciate my work. my projects are very popular in my university because i always complete my work with extreme devotion. i have a great knowledge about all major science topics. science topics always remain my favorite topics. i am also a home expert. i teach many clients at my home ranging from pre-school level to university level. my clients always show excellent result. i am expert in writing essays, reports, speeches, researches and all type of projects. i also have a vast knowledge about business, marketing, cost accounting and finance. i am also expert in making presentations on powerpoint and microsoft word. if you need any sort of help in any topic, please dont hesitate to consult with me. i will provide you the best work at a very reasonable price. i am quality oriented and i have 5 year experience in the following field.
matriculation in science topics; inter in computer science; bachelors in business and information technology
_embed src=http://www.clocklink.com/clocks/0018-orange.swf?timezone=usa_albany& width=200 height=200 wmode=transparent type=application/x-shockwave-flash_
4.40+
11+ Reviews
14+ Question Solved
Related Book For
Data Structures Using C A Practical Approach For Beginners
ISBN: 9781000470741
1st Edition
Authors: Amol M Jagtap, Ajit S Mali
Question Posted:
Students also viewed these Computer science questions
-
Critically analyse the supply network of your companys net zero, zero deforestation, carbon neutral or climate positive claims. Discuss the validity or inadequacies of these claims.
-
Compute the slope at \(A\) and the horizontal and vertical components of deflection at point \(D\) in Figure P7.27. 6' 9 kips B 12' 6' 6 kips D
-
Create the GUI in Fig. 14.2 (you do not have to provide functionality). Figure 14.2 Printer GUI Ok Printer. Bugalicious X9000 O Image O Selection Cancel Text O Current page Code ComboBox Setup....
-
A ball is tied to one end of a string. The other end of the string is held fixed. The ball is set moving around a vertical circle without friction, and with speed at the top of the circle, as in...
-
In S - ( R - O ) learning situations, A . S is an occasion setter rather than just serving as a CS . B . R is the occasion setter enabling the subject to determine when to respond. C . S will not...
-
Work sheets for Bedthings, Inc., a manufacturing firm, are included in the Working Papers. Additional information for Bedthings for the months of March and April follow. Your instructor will guide...
-
1. Was Linderman Industries adoption of project organization an appropriate one for getting the Mexican subsidiary started? 2. In consideration of Robert Lindermans letting the division managers know...
-
In order yo work as a property manager for compensatuon, an individual must
-
What is the return type of the malloc () function? A. void B. int * C. foat * D. void *
-
In the worst case, the number of comparisons needs to search a node in a singly linked list of length n is having time complexity. A. log n B. n C. log2n-1 D. n/2
-
Mr. Simmons owned and operated a bakery and sought to obtain a supermarket franchise with Cardinal Stores. Cardinal Stores assured Simmons that his $18,000 was sufficient and advised him to acquire...
-
John was driving a car at a speed of 20.5 m/s and stopped car in 2.5 s using brakes. If the mass of car with him is 1.5x10 6 g, what is the average horizontal force exerted on it during braking?...
-
1. A cart with a mass of 25.0 kg is rolling with a speed of 14 m/s. What is the magnitude of the cart's momentum? 2. Using the concept of impulse, explain why an egg wont break when thrown into a...
-
What customer relationship management (CRM) platforms and methodologies are leveraged to foster long-term customer loyalty and engagement?
-
In a small economy, the demand and supply of organic olive oil are given by the following functions: Qd=120 000-1000P and P=20+Qs/9000, where P is the price per liter, in euros. The price of olive...
-
If f ( 1 ) = 2 , ( 1 . 1 ) = 3 , and ( 1 . 2 ) = 5 , what is the value of Newton's divided difference [ 1 , 1 . 1 , 1 . 2 ] ?
-
Five Satins Company purchased a piece of equipment at the beginning of 2011. The equipment cost $430,000. It has an estimated service life of 8 years and an expected salvage value of $70,000. The...
-
Which property determines whether a control is available to the user during run time? a. Available b. Enabled c. Unavailable d. Disabled
-
In this project, you will implement a new class called a bag with receipts. This new class is similar to an ordinary bag, but the data consists of strings, and the way that the strings are added and...
-
Another way to store a collection of items is called a keyed bag. In this type of bag, whenever an item is added, the programmer using the bag also provides an integer called the key. Each item added...
-
Specify, design, and implement a class where each object keeps track of a large integer with up to 100 digits in base 10. The digits are stored in an array of 100 elements, and the sign of the number...
-
< (Payback period, net present value, profitability index, and internal rate of return calculations) You are considering a project with an initial cash outlay of $84,000 and expected cash flows of...
-
Management of Cullumber, a biotech firm, forecasted the following growth rates for the next three years: 35 percent, 28 percent, and 22 percent. Management then expects the company to grow at a...
-
Using what you've learned, determine which profile belongs to the buyside analyst and which belongs to the sellside analyst. Drag each professional role to its corresponding description. Buyside...
Study smarter with the SolutionInn App