Answer Posted / pushpendra
local variable:-its uses inside the function that is these variable exist inside the function and other fu no access out side the main function.
while global variables are variables and which are declared both sides of function inside and outside that is globally.all functions can access out of main function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of f in c?
State the difference between x3 and x[3].
Can a pointer point to null?
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
Write a program to check armstrong number in c?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
what are the advantages of a macro over a function?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
about c language
Is exit(status) truly equivalent to returning the same status from main?
what are the facialities provided by you after the selection of the student.
Is main a keyword in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is a newline escape sequence?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?