print means print, f means formatting
or
printf is a output statement function in the C run-time library
example:
printf ("the value of A is %d\n", A);
Where can you download a free turbo c plus plus tutorial?
You can download Turbo C++ from the Embarcadero website for free. Embarcadero now own and develop all CodeGear products previously owned and developed by Borland, including the latest version of C++ Builder.
What is the relationship between compiler interpreter loader and linker?
Compiler - Translates High level language (C, C++ etc.) and generates Object code (machine readable but not directly executable)
Interpreter - Same as compiler but do that interactively (simply saying line by line). Interpreted languages don't usually require a linker, and employ a loading process different from that of a compiled program: the interpreter itself is linked and loaded like a compiled program (and in all probability is a compiled program), but the program interpreted by the interpreter is typically loaded through interpreter-specific means.
Linker - Connects the compiler generated object code with library code to generated independent executable (like in C, you dont write how printf() works, linker add the code for printf() function in your program)
Loader - Load the machine readable codes in memory to be executed. This step typically includes relocating the code output by the linker to a specific memory location into which the program was being loaded.
Algorithm for finding min element in a linked list?
In a linked list, there is no way to find the "min element" or any other element with a specific property except by walking through the entire list. Of course, you could store a pointer to the min element and update that each time the list changes (add ing or deleting an element), which makes the list less generic and a tiny bit slower but is worth it if you need this min element often.
Pseudocode for finding the min element (I'm assuming you're storing values and you want the element with the lowest value):
ptr_minelement = null;
ptr_element = ptr_firstelement;
while (ptr_element != null) {
if (ptr_minelement == null) or (ptr_minelement->value > ptr_element->value)
ptr_minelement = ptr_element;
ptr_element = ptr_element->ptr_next;
}
What is turbo pascal programming language?
Every Pascal program must follow a basic structure. While this structure is very similar to Karel programming, there are several differences. Below is the basic structure that every Pascal program must follow.
PROGRAMProgramName;
VAR VariableName : VariableType; VariableName : VariableType; ...
PROCEDUREProcedureName;
variables here if necessary BEGIN
Some Code;
END;
FUNCTIONFunctionName(variableList): VariableType;
variables here if necessary
BEGINSome Code if necessary; FunctionName := some expression More Code if necessary;
END; ... more functions and procedures if necessary ...
BEGIN the main program block. It should be small and all work should be delegated to the procedures and functions. It often consists of a WHILE loop that calls in turn procedures and functions in the appropriate order. END.
Does the burmata triangle real?
The Bermuda Triangle is a real area of the south Atlantic off the coast of the United States. It has a long history of being responsible for ships and planes disappearing when they pass through it. It is considered myth but things have happened there.
Where linked list is used in computer?
Linked lists are dynamic linear data containers.
They are linear because each item has one adjacent item in each direction (there is a predecessor, or none, and a successor, or none, to each item, but never more than one in each direction).
They are dynamic because the size is not generally fixed and potentially infinite. To manage such a dynamic structure, memory for new items is allocated at runtime, and the different items are connected, or linked, through pointers.
In a single linked list, a single pointer points from one item to the next item.
In a double linked list, one pointer points from one item to the next item, and a second pointer points to the previous item in the list.
What is the highest pay for a computer programmer?
60k 1st year, up to 80k. Depending on what field, employer, and where you work at. 60k 1st year, up to 80k. Depending on what field, employer, and where you work at. 60k 1st year, up to 80k. Depending on what field, employer, and where you work at.
What are example of second generation programming language?
Machine code is first generation. Low-level, machine-dependent, symbolic languages such as assembly language are second generation. All high-level, machine-independent languages are third generation. Fourth and fifth generation don't actually have any meaning since there is no "standard" to define these terms, although they are often used to classify specific types of third-generation languages.
Why you use structure in c language?
Structures are handy if you have a certain set of types of information that will be used repeatedly. For example, a structure called 'address' might consist of the street number, the city, the zip code, the state, and the country. You could then create several instances of this structure, maybe for several employees or something. Each instance would have its own zip code, state, country variable etc.
Remarks in any computing language are so programmers can make comments in the code. The comments only help programmers, and do nothing for the program or the end users. Comments are not code and don't do anything to the program. They are just a way for programmers to make little reminders about what the code does.
Definition of multi-core processor?
A multi-core processor is one which combines what are essentially multiple CPUs into a single chip. As far as the operating system and other software are concerned, it is the same as a dual or quad-cpu computer system, even though the cpus are physically one single unit.
What is a local variable and What statements are able to access a local variable?
A local variable is a variable that can only be called on by the module. Where as a global variable can be called upon by any module. Only statements made inside the same module can call on a local variable.
A software process model is a simplified description of a software process which is
presented from a particular perspective. Models, by their very nature, are
simplifications so a software process model is an abstraction of the actual process
which is being described. Process models may include activities which are part of
the software process, software products and the roles of people involved in software
engineering.
Some examples of the types of software process model which may be
produced are:
1. A workflow model. This shows the sequence of activities in the process
along with their inputs, outputs and dependencies. The activities in this
model represent human actions.
2. A dataflow or activity model This represents the process as a set of activities
each of which carries out some data transformation. It shows how the input
to the process such as a specification is transformed to an output such as a
design. The activities here may be at a lower-level than activities in a
workflow model. They may represent transformations carried out by people
or by computers.
3. A role/action model This represents the roles of the people involved in the
software process and the activities for which they are responsible.
4. Iterative Processes This prescribes the construction of initially small but ever larger portions of a software project to help all those involved to uncover important issues early before problems or faulty assumptions can lead to disaster. Iterative processes are preferred by commercial developers because it allows a potential of reaching the design goals of a customer who does not know how to define what they want.
5. Capability Maturity Model Integration (CMMI) is one of the leading models and based on best practice. Independent assessments grade organizations on how well they follow their defined processes, not on the quality of those processes or the software produced. CMMI has replaced CMM.
There are a number of different general models or paradigms of software
development:
1. The waterfall approach This takes the above activities and represents them as
separate process phases such as requirements specification, software design,
implementation, testing and so on. After each stage is defined it is 'signedoff'
and development goes on to the following stage.
2. Evolutionary development This approach interleaves the activities of
specification, development and validation. An initial system is rapidly
developed from very abstract specifications. This is then refined with
customer input to produce a system which satisfies the customer's needs.
The system may then be delivered. Alternatively, it may be re-implemented
using a more structured approach to produce a more robust and maintainable
system.
3. Formal transformation This approach is based on producing a formal
mathematical system specification and transforming this specification, using
mathematical methods to a program. These transformations are 'correctness preserving'.
This means that you can be sure that the developed program
meets its specification.
4. System assembly from reusable components This technique assumes that
parts of the system already exist. The system development process focuses
on integrating these parts rather than developing them from scratch.
Logical operations involve the use of three operators - NOT, AND and OR. NOT simple negates a value.
It uses one operand.
For Example - a) Not True (which means, False as True and False are the only possible values) b) Knowing English AND French (means someone who knows both English AND French) c) Knowing English OR French (means someone who knows either English or French).
Distinguish between flowchart and decision table?
Encryption
What value is assigned to extern variable?
Default initial value of extern integral type variable is zero otherwise null.
Why you use constructor instead of function?
For every class an empty constructor will be defined automatically by default unless you provide a constructor definition manually. Constructor in a class can be used to initialize variables or perfrom some basic functionallity whenever an object is created.
What is Multilevel feedback queue?
A multi-level feedback queue scheduling policy gives preference to short and I/O bound processes, it also rapidly establishes the nature of a process and schedules it accordingly. Multi-level feedback queues work on priorities. Processes are placed in separate queues based on their priority, this in turn is based on their CPU consumption and If a process uses too much of the CPU, it will be given a lower priority and therefore get less CPU time than fast and I/O bound processes. Any processes that do not complete in their allocated time slice / quantum are demoted to a queue of less priority, these lower priority queues generally have larger quantums / time slices. Each of the queues may use a different scheduling algorithm, this is done to make the overall scheduling method as efficient as possible. The features that may vary between different multi-level feedback queue scheduling methods are: - The number of queues - The scheduling algorithm assigned to each queue - The method used to promote/demote processes to different queues - The method that determines which queue a process enters --- Thomas Lee
What is formal parameter in c?
A variable declared in the header of a method whose initial value is obtained during method invocation (using the actual parameter). So: int method(/*Formal Parameters*/){ //Method Actions return 0; }
Write a c program divisible by 3 and 5 or not?
void main(){ int i,j; scanf("%d",&i); if((i%5)==0) printf("the given number is divisible by 5); }
What kinds of things can become objects i oop?
An object is an instance of a class by which we can access a number variable and a member function. It is a blue print of a class. It is a basic runtime entity of an object oriented programming. Object contain data and code to manupulate that data. When a program is exicuted the object interact by sending message to one another.
What are some advantages and disadvantages of using a computer?
There are almost 0 disadvantages to this. With a computer screen you get to see what you are doing on your computer. Without one there is no point of a computer since you would not be able to use it.