|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
Test s for prime or not?
#include<stdio.h>
void main(void)
{
int no,rem,cnt;
Printf("enter No");
scanf("%d",&no);
cnt=2;
while(cnt<=no)
{
rem=no % cnt;
if (rem==0)
{
printf("No is not prime");
exit(0);
}
cnt++;
}
printf("No is Prime");
}
Create Date
:
Thursday, October 16, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)

A dialog box is a window that pops up in response to user action to inform the user with a message. E.g. if the user does not save the document and exists the application the window pops up asking if he wants to save the document. This window is the dialog box. Modal Dialog: A modal dialog box disables the window to which it is assigned until the user dismisses the dialog box. E.g. The dialog that gets displayed with "yes"/"no"/"cancel" when you try to exit MS Word without saving the document is a modal dialog box. A model dialog box is created by calling the doModal() function of the dialog class. This function does not return back control to the caller until the dialog is dismissed. E.g. CDialog dlg; dlg.doModal(); Modeless Dialog: A modeless dialog box is just the reverse of modal. It allows the user complete control of the application which owns it and the user can continue his work without closing the dialog. A modeless dialog box can be created using the Create () command of CDialog class. The Create() call returns as soon as the dialog box is created. Hence the control returns back to the caller and the user is able to continue using the application.
Create Date
:
Saturday, May 10, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
Does nothing ! If used, must be the only sentence within a paragraph.
Create Date
:
Saturday, May 10, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
Does nothing ! If used, must be the only sentence within a paragraph.
Create Date
:
Friday, May 09, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
The RETURN statement terminates the operation and exits out of a stored procedure or batch operation. RETURN also allows you to return a value to the calling batch or stored procedure. The BREAK statement exits out of a while loop.
Create Date
:
Wednesday, April 02, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
True or false : the exit () function causes an exit from a function.
Create Date
:
Tuesday, April 01, 2008
Click here
to improve the Interview Question, Answer and other fields.