ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories >> ERRORS
 
  C-C++-Errors (16)  DotNet-Errors (4)  Scripts-Errors (31)
 


 

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.
 
0
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
 
0
Saurabh Mehra
 
 
Answer
its .....1 2 2
 
0
Ajay
[PSNCET]
 
 
 
Answer
2 2 1
 
0
Rajababu
[PSNCET]
 
 
Answer
113
 
0
Idds
[PSNCET]
 
 
Answer
1 2 3
 
0
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..........
 
0
Mariaalex007
 
 
Answer
declaring int i inside for loop is not available in
traditional 'c'
 
0
Kumaran
[PSNCET]
 
 
Answer
we can not declare loop condition variable in c..we can do
in c++.
 
0
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();
}
 
0
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()
}
 
0
S.vyasaraj
 
 
Answer
the series seems to be infinite . so you need to restrict 
it to some ceiling.
 
0
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);
 
0
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();
}
 
0
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");
 
0
Guest
 
 
Answer
the printf function canbe redefined by your program using 
typedef and try this.
 
0
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
 
0
Vignesh1988i
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com