void main()
{int i=2;
printf("%d%d%d",i,++i,i++);
getch();
}
Answer Posted / nunaram murmu
542
| Is This Answer Correct ? | 0 Yes | 8 No |
Post New Answer View All Answers
what are bit fields? What is the use of bit fields in a structure declaration?
Can include files be nested?
Why malloc is faster than calloc?
How can I read data from data files with particular formats?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is auto keyword in c?
Why is extern used in c?
Explain the array representation of a binary tree in C.
Explain how do you print an address?
What are shell structures used for?
Do you know what are the properties of union in c?
What is array in C
What are the 5 elements of structure?
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