what is macro in c?
Difference between single linked list & double linked list
what is fifo & lifo?
what is stack & queue?
Answers were Sorted based on User's Feedback
Answer / nilam
Macros are preprocessor directives that are defined using #define directive. Macros consist of two parts Macro_Name, & Macro_Substitution_Text.
Before the source code gets complied, the preprocessor will check for the presence of macros. & wherever it found that macro simply replaces that macros with substitution text.
Macros are not Type Safe.
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / revathi
stack is a last in, first out (LIFO).It is characterized by only three fundamental operations: push, pop and stack top.
The queue is a First-In-First-Out (FIFO) data structure. In a FIFO data structure, the first element added to the queue will be the first one to be removed.
| Is This Answer Correct ? | 7 Yes | 1 No |
Declaration of Cube Guys please help me.. Is this a right way to declare cube.? If i Compile it. It Says: Cube undeclared what should i do? Please help \thanks in advanced #include<stdio.h> #include<math.h> #include<conio.h> main( ) { float x,y; while(x++<10.0) { printf("Enter Number:"); scanf("%d", &x); y = cube(x); printf("%f %f %f \n", x,pow(x,2),y); cube(x); } { float x; float y; y = x*x*x; } getch(); return (y); }
Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.
A sample program using data structure? what is file handling?
what is meant for variable not found?
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,
char* f() return "hello:"; void main() {char *str=f(); }
how to convert decimal to binary in c using while loop without using array
50 Answers Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,
What is the code for following o/p * * * * * * * * * * * * * * * *
how to convert decimal to hexadecimal without using arrays just loops
Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a do...while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .
Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here's must be the output of the program: Screen A Exam No. items Score 1 20 20 2 35 35 Another Entry? [Y] or [N] : Screen B: Record No. Student's Name: 1 Fernando Torres 2 Chuck Norris Note: if you press Y, the program must repeat the procedure in screen A, then if N, the program must proceed to the screen B....Please Help me out............