main ()
{
int a;
printf("\n%d",scanf("%d",&a));
}
Sunday, September 30, 2007
Thursday, September 27, 2007
Wednesday, September 26, 2007
Tuesday, September 25, 2007
Monday, September 24, 2007
Sunday, September 23, 2007
TECH QUES OF (9/23)
main()
{
int i, n;
char *x = "girl";
n = strlen(x);
*x = x[n];
for(i=0; i‹n; ++i)
{
printf("%s\n",x);
x++;
}
}
hi ,good morning
one small suggestion so far we have 6 moderators and an adminstrator to maintain this blog and send a mail to cmritglug@gmail.com for approval of new moderators .
please post answers to your question in atmost two days
ok bye
have a nice day
from
cglug
please post answers to your question in atmost two days
ok bye
have a nice day
from
cglug
Saturday, September 22, 2007
TECH OF (9/22)
main()
{
char *str1="abcd";
char str2[]="abcd";
printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd"));
}
Friday, September 21, 2007
Thursday, September 20, 2007
aptitude ques(9/20)
A wizard named Nepo says "I am only three times my son's age. Myfather is 40 years more than twice my age. Together the three of us are a mere 1240 years old." How old is Nepo?
Wednesday, September 19, 2007
TECH (9/19)
main()
{
int i=3;
switch(i)
{
default:printf("zero");
case 1: printf("one");
break;
case 2:printf("two");
break;
case 3: printf("three");
break;
}
}
{
int i=3;
switch(i)
{
default:printf("zero");
case 1: printf("one");
break;
case 2:printf("two");
break;
case 3: printf("three");
break;
}
}
Tuesday, September 18, 2007
Aptitude Question
Three friends divided some bullets equally. After all of them shot 4 bullets the total number of bullets remaining is equal to the bullets each had after division. Find the original number divided.
Monday, September 17, 2007
aptitude ques(9/16)
The sum of the digits of a number is 8. When 18 is added to the number, the digits are reversed. Find the number?
Sunday, September 16, 2007
Saturday, September 15, 2007
Thursday, September 13, 2007
aptitude ques 2(9/13)
use four 4's and get the result as 20...use any kind of mathematical relations between these numbers......
aptitude ques(9/13)
two friends starts to ride motor bike opposite to each other and are separated by 36 km. they both ride with the speed of 6 kmph. A fly travels with the speed of 18 kmph to and fro between two friends. it starts to travel from one of the friends. What is the distance traveled by the fly when the friends meet?
please give u r feedback here
Hi ,
Thanks for your co-operation,we will be Happy if you post your feedback or suggestions to improve this Blog either comment or mail to cmritglug@gmail.com. The primary intention is to prepare ourself in both technical and aptitude wise for our upcoming campus placement and this Blog is public to our class (college) ofcource with few Administrators to monitor the activities and this is purely a team work.
thank you
from
cglug
rakesh
Thanks for your co-operation,we will be Happy if you post your feedback or suggestions to improve this Blog either comment or mail to cmritglug@gmail.com. The primary intention is to prepare ourself in both technical and aptitude wise for our upcoming campus placement and this Blog is public to our class (college) ofcource with few Administrators to monitor the activities and this is purely a team work.
thank you
from
cglug
rakesh
APPTI QUES OF 13-9
To travel 'm' miles the time is 'h' hours,then what is the time taken
to travel M miles. (question from wipro paper)
to travel M miles. (question from wipro paper)
Wednesday, September 12, 2007
APTITUDE QUES (9/12)
A monkey starts climbing up a tree 20ft. tall. Each hour, it hops 3ft. and slips back 2ft. How much time would it take the monkey toreach the top?
Tuesday, September 11, 2007
apptitude ques 2 (9/11)
The square of a two digit number is divided by half the number. After 36 is added to the quotient, this sum is then divided by 2. The digits of the resulting number are the same as those in the original number, but they are in reverse order. The ten's place of the original number is equal to twice the difference between its digits. What is the number?
Monday, September 10, 2007
try this out
1. One of the following is my secret word: AIM DUE MOD OAT TIE. With the list in front of you, if I were to tell you any one of my secret word, then you would be able to tell me the number of vowels in my secret word. Which is my secret word?
Technical Question of the day
What will be the output of the following code?
void main ()
{ int i = 0 , a[3] ;
a[i] = i++;
printf (“%d",a[i]) ;
}
void main ()
{ int i = 0 , a[3] ;
a[i] = i++;
printf (“%d",a[i]) ;
}
Wednesday, September 5, 2007
Apptitude question
A MAN DRIVING THE CAR AT TWICE THE SPEED OF AUTO ONEDAY
HE WAS DRIVEN CAR FOR 10 MIN. AND CAR IS FAILED. HE LEFT
THE CAR AND TOOK AUTO TO GOTO THE OFFICE .HE SPENT 30 MIN.
IN THE AUTO. WHAT WILL BE THE TIME TAKE BY CAR TO GO OFFICE?
(a) 25 (b) 30 (c) 35 (d) none
Apptitude and Technical Questions for interview
can anyone tell the output of the following c program? try to reply with explanation ... all the best..
1. main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}
2. main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I love U");
else
printf("I hate U");
}
3. main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
1. main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}
2. main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I love U");
else
printf("I hate U");
}
3. main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
Subscribe to:
Posts (Atom)