Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
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
explain the storage class extern the storage class extern one method of transmitting information across blocks and functions is to use external
explain the storage class autothe storage class auto variables declared within function bodies are automatic by default thus automatic is the most
write a short notes on storage classes in cevery variable and function in c has two attributes type and storage class the four storage classes are
explain definition of fibonacciwhere an input value gives a trivial result it is returned directly otherwise the function calls itself passing a
syntax of recursionint fibint num fibonacci value of a number switchnum case 0 return0 breakcase 1 return1 breakdefault
explain the term recursiona recursive function is one which calls itself recursive functions are useful in evaluating certain types of mathematical
give the syntax switch statements consider the following example this is a function which converts an integer into a vague description it is
switchthis is another form of the multi way decision it is well structured but can only be used in certain cases where only one variable is tested
what is compound statementif we wish to have more than one statement following the if or the else they should be grouped together between curly