What is diffrance between declaration and defination of a variable or function
Answer Posted / manish soni bca 3rd year jaipu
IN FUNCTION;
-------------------------------------------
1:)DECLARE: int sum(int);//close with semicolon;
2:)DEFINATION: int sum(int n)//not colse with semicolon;
{
//logic of the function;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why C language is a procedural language?
How do I get an accurate error status return from system on ms-dos?
What are the data types present in c?
How can you pass an array to a function by value?
How can I manipulate strings of multibyte characters?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Write a program for Overriding.
What are header files and what are its uses in C programming?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Difference between goto, long jmp() and setjmp()?
Is there a way to switch on strings?
How many levels of pointers have?
What is the difference between the expression “++a” and “a++”?
What does malloc () calloc () realloc () free () do?