Avi
BAN USER- 0of 0 votes
AnswersHow will you find out size of a variable without using sizeof ();
- Avi in India| Report Duplicate | Flag | PURGE
Infosys Software Engineer / Developer C - 0of 0 votes
AnswersWhere is address of function pointer stored.?
- Avi in India| Report Duplicate | Flag | PURGE
Capgemini Consultant
- 1 Answer Resume
Hi everyone,
- Avi September 15, 2012
need help,I want to make my resume. Suppose I Am working with company A under the payroll of B. Can any one please help me out how to mention client company's name.
If some one sends a sample it will be really helpful
mail-abhishekmalhotra87@rediffmail.com| Flag | PURGE - 5 Answers Hi do not if it a right place ...
Hi do not if it a right place to ask
- Avi June 19, 2012
I have an experience of 1.5 years in c (development)
Currently i am looking for a job change and i want to switch to testing. can any one help me how to face the main question i.e why do you want to switch to testing.
Please help with a valid point to answer .| Flag | PURGE
#include<stdio.h>
void copy_array(int q[], int r[] ,int i)
{
if(i >= 0)
{
r[i]=q[i];
i--;
copy_array(q,r,i);
}
}
int main()
{
int index,length;
int a[]={1,2,3,4,5,6,7,8,9};
int b[15];
length= ( sizeof(a)/ sizeof(a[1]));
copy_array(a,b,length);
for(index=0;index<9;index++)
printf("%d\n",b[index]);
return 0;
}
#include<stdio.h>
int main()
{
int low=0,high,temp;
int array[]={98,-87,75,85,75,-74,-63,-746,987,82,-836,-6453,-745,-947,98};
high= ( sizeof(array)/sizeof(array[low]));
while(low < high)
{
if(array[low] > 0)
{
if(array[high] > 0)
{
high++;
}
}
else if(array[low] < 0)
{
if( array[high] > 0)
{
temp=array[high];
array[high]=array[low];
array[low]=temp;
}
else
{
low--;
}
}
low++;
high--;
}
return 0;
}
When A said he doesn't know :
-> botch B and C are not wearing white.
When B saw C, if C had a white cap B would have answered black because from A's answer both B and C were sure both of them are not wearing white cap.
So when B said he doesn't know C was sure he was wearing a black cap.
Process: Its a program in execution.
Stack: Space used by a process for controlling its flow of execution and storing of its local variables.
Thread: It is an independent flow of execution which shares same address space as its parent process.
Yes threads have their own stack.
It will print 2 infinite time.
- Avi April 17, 2013But why do you declare i unnecessarily it will take space ( program optimization) mention return type of test() in definition.