Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
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
what is meant by opening a data filea data file is a file that can be read from or written to data files are particularly useful when large amounts
how can a function return a pointer to its calling routinethe general form of a function istypespecifier functionnameparameter listbody of
write a short note on pointer operators in cpointers that is pointer values are generated with the address-of operator amp which we can also think of
write a short note on pointer declarationa simple variable in a program is stored in a certain number of bytes at a particular memory location or
define the difference between union and structurethe main difference between union and structure is the storage allocation in union for each
what is the main use of structuresthe main use of structures is to lump together collections of disparate variable types so they can conveniently
what is a union a union like a structure is a derived type unions follow the same syntax as structures but have members that share storage a union
explain advantage of static storage classthe second and more subtle use of static is in connection with external declarations with external
explain the storage class static the storage class static static declarations have two important and distinct uses the more elementary use is to
the storage class registerthe storage class register the storage class register tells the compiler that the associated variable should be