Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
write a c program to sort in ascending order of n numbers include ltstdiohgt include ltconiohgtvoid mainint a25noijmtclrscrprintfnenter total number
with a c program to read the text book number title author and publisher into a structure and print these values include ltstdiohgt include
examples of declarations of external variables that are not definitionsextern char stack10extern int stkptrthese declarations tell the
summarize the distinction between an external variable definition and an external variable declarationwhen we have declared a variable we have meant
write a program to read in a positive integer and check whether it is prime or not program to check whether a given number is prime or not include
write a program to check whether a given word is a palindrome or not include ltstdiohgt include ltconiohgtvoid mainchar word10int
the for loopthe for loop works well where the number of iterations of the loop is known before the loop is entered the head of the loop consists of
the do while loopthis is very similar to the while loop except that the test occurs at the end of the loop body this guarantees that the loop is
the while loopthe while loop repeats a statement until the test at the top proves false as an example here is a function to return the length of a
explain the for loop the for loop is frequently used usually where the loop will be traversed a fixed number of times it is very flexible and novice
explain the do while loopsthe do while loops is similar but the test occurs after the loop body is executed this ensures that the loop body is run at
explain the while loop in cthe while loop keeps repeating an action until an associated test returns false this is useful where the programmer does
c provides a wide range of variable types normal 0 false false false en-in x-none x-none microsoftinternetexplorer4
what is the difference between a constant and variable explain with example a c constant is usually just the written version of a number for
how can the maximum field width for a data item be specified within a scanf functionwhen the program is executed three integer quantities will be
what is meant by a fieldthe consecutive nonwhite space characters that define a data item collectively define a field it is possible to limit the
normal 0 false false false en-in x-none x-none microsoftinternetexplorer4
how putchar function is used within a c program the following program reads each character in the first line of input entered at the terminals
what is the purpose of putchar functionputchar writes one character to the standard output file stdoutsyntaxinclude ltstdiohgtint putcharint cthe
write a program to find the area and perimeter of a circle of given radius include ltstdiohgtvoid mainfloat radius area perimeter pi314printfnenter
defines a macrodefines a macro with the given name having as its value the given replacement text after that for the rest of the current source file
what is a macro how it is defined preprocessor is a translation phase that is applied to source code before the compiler proper gets
creating files for writing onlycreating files for writing only to create a text file for writing only pass w into fopen as the second argument this
what is null pointerinside main a file called file afterwards the fopen function passing it the path to data file as well as r only intending to
opening files for reading only a data file is a file that you can open and read its contents visually - for example c source files dat