| Back to Questions Page |
| |
| Question |
Hi Everyone, I used VB.net until last year, this year I
change my language to C#.net.But the easy one in VB.net such
as "Set as Start page when running program", right click on
solution explorer and do it. But in C#.net I can't find the
way to do (Set as start page)until now. If anyone know it ,
please share your technical help. Thanks . (Horace Trever) |
Rank |
Answer Posted By |
|
Question Submitted By :: Horacetrever |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | if u r working on vs 2005 and so on u can find those
options also
there is no much difference between c# and vb.  |
| Gyany |
| |
| |
| Question |
void main()
{
int i=1;
printf("%d%d%d",i,++i,i++);
}
Cau u say the output....? |
Rank |
Answer Posted By |
|
Question Submitted By :: Mariaalex007 |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | 3 3 1  |
| Saurabh Mehra |
| |
| |
| Answer | its .....1 2 2  |
| Ajay [PSNCET] |
| |
| |
|
|
| |
| Answer | 2 2 1  |
| Rajababu [PSNCET] |
| |
| |
| Answer | 113  |
| Idds [PSNCET] |
| |
| |
| Answer | 1 2 3  |
| Kanshi Ram [PSNCET] |
| |
| |
| Question |
void main()
{
for(int i=0;i<5;i++);
printf("%d",i);
}
What is the output?.. |
Rank |
Answer Posted By |
|
Question Submitted By :: Mariaalex007 |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Answer is 5..........  |
| Mariaalex007 |
| |
| |
| Answer | declaring int i inside for loop is not available in
traditional 'c'  |
| Kumaran [PSNCET] |
| |
| |
| Answer | we can not declare loop condition variable in c..we can do
in c++.  |
| Mahfooz [PSNCET] |
| |
| |
| Question |
write a profram for selection sort
whats the error in it? |
Rank |
Answer Posted By |
|
Question Submitted By :: Joshin |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | //program for selection sort
#include<stdio.h>
#include<conio.h>
#define MX 100
void selection(int [], int);
void selection(int a[],int n)
{
int minindx,t;
int i,j;
for(i=0;i<n-1;i++)
{
minindx=i;
for(j=i+1;i<n;j++)
{
if(a[j]<a[minindx])
minindx=j;
}
if(minindx!=i)
{
t=a[i];
a[i]=a[minindx];
a[minindx]=t;
}
}
}
void main()
{
int a[MX],i,n;
clrscr();
printf("enter total num of elements:");
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
selection(a,n);
printf("sorted arrau:\n");
for(i=0;i<n;i++)
{
printf("%d \t",a[i]);
}
getch();
}
 |
| Joshin |
| |
| |
| Question |
To generate the series 1+3+5+7+... using C program |
Rank |
Answer Posted By |
|
Question Submitted By :: S.vyasaraj |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | #include<stdio.h>
#include<conio.h>
void main()
{
int n,i=1,sum=0;
clrscr();
printf("enter the value for n:");
scanf("%d",&n);
while(i<=n)
{
sum=sum+i;
i=i+2;
}
printf("the series is =%d");
getch()
}  |
| S.vyasaraj |
| |
| |
| Answer | the series seems to be infinite . so you need to restrict
it to some ceiling.  |
| Parthibanselvaraj |
| |
| |
| Answer | In the answer Printf function is worng here the value for %
d is not mentioned it would like
printf("the series is =%d", sum);  |
| Naresh Kumar |
| |
| |
| Answer | #include"stdio.h"
#include"conio.h"
void main()
{
int s=0;
for(int i=1;i<100;i++)
{
if(i%2==0)
continue;
s=s+i;
}
printf("The answer is...%d",s);
getch();
}  |
| Mariaalex007 |
| |
| |
| Question |
printy(a=3,a=2)
|
Rank |
Answer Posted By |
|
Question Submitted By :: Gordhanram49 |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | if we want to show result as a=3,a=2..then it ll be written
as
printf("a=3,a=2");
 |
| Guest |
| |
| |
| Answer | the printf function canbe redefined by your program using
typedef and try this.  |
| Parthibanselvaraj |
| |
| |
| Answer | this is the user writtern function...... this is function
definition statement..... it wont recoganize this statement
because no memory will be allocated for this a=3 or 2...
since we didnt declare it first of all/.. this may be the
error  |
| Vignesh1988i |
| |
| |
|
| |
|
Back to Questions Page |