C
Need help writing a program to find GCD for two input numbers please if you can use this example
GCD (12,15)?
Thanks so much!!
- 1171 views
- 6 answers
- 0 votes
Turbo C is a programming language which runs on a Disk Operating System (DOS) which was introduced during the 1980s. This language uses only text in programming that is why it was soon superseded by languages which interacts with graphics. The fact that Turbo C is losing its compatibility with the current Operating System such as Windows 7 and still moving forward, it is still being taught in colleges, universities, and institutions.
What makes it relevant to teach such language which is now considered as obsolete in programming world?
- 1395 views
- 2 answers
- 0 votes
How can I store a character string in a block of memory space which is created by malloc and then modify the same to store a large string? Can it remain the same while storing the original contents of the buffer even after modifying the original size?
- 983 views
- 2 answers
- 1 votes
Hi All,
Which are the frequently asked questions related to C programming?
I am preparing for an interview and have come across this site and decided to ask you experts some questions: what are the questions asked and please give me the top 10 Q & A's.
Thank you all.
- 1021 views
- 2 answers
- 0 votes
Dear friends,
Here is the C source code :
void travpost(node *root) {
node *p=root, *q=NULL;
stk.top=-1;
do {
while(p!=NULL)) {
push(P);
p=p->left;
}
- 909 views
- 2 answers
- 0 votes
Hello,
I have been frequently facing the following problem while programming in "C": the error message "Unable to open include file." was entered at the time of compiling the program.
I checked the library of files, they are stored in my include folder yet the error message has entered while compiling; why? I would be grateful if anybody solves this.
Message
Compiling D:MYDUMP~1TCMYPROGRA.C:
Error D:MYDUMP~1TCMYPROGRA.C 2: Unable to open include file 'STDIO.H'
- 3029 views
- 3 answers
- 0 votes
I know "calloc" and "malloc" are the concepts related to dynamic memory allocation, but I am not clear with what is the exact difference between the two.
I need to use dynamic memory allocation in my program handling garbage collection.
Can you tell me which one should be used in which case and what are the pros/cons of both?
- 1915 views
- 2 answers
- 0 votes
Hi All,
How can I run a C program in full screen using windows 7 environment on Turbo C compiler? Kindly give precise and clear answers.
Thank you.
- 1361 views
- 3 answers
- 0 votes
Problem Statement:
Printing Electricity Bill Detailed Description
Write a C++ program in which you have to:
- Create a text file “Electricity_Bill”.
- Write the following data in it:
Electricity Consumer Bill:
Reference No | Tariff | Load | Old A/C No |
123456789123456 | 2 | 1 | 123456789123456 |
Name and Address
XYZ Lahore Pakistan
- 3950 views
- 1 answers
- 1 votes
If a disk is divided into four partitions and there are four logical drives present in the computer and every partition has been assigned one logical drive, write the steps involved in calculating the LBA address of the third partition table.
- 866 views
- 1 answers
- 0 votes