Question
Asked @
Answers
Views
select
How we print the table of 3 using for loop in c
programing?
0
14
How we print the table of 2 using for loop in c
programing?
0
9
what mean void creat_object?in public class
in this code
class A{
public:
int x;
A(){ cout << endl<< "Constructor A";}
~A(){ cout << endl<< "Destructor A, x is\t"<< x;}
};
void create_object();
void main()
{
A a;
a.x=10;
{
A c;
c.x=20;
}
create_object();
}
void create_object()
{
A b;
b.x=30;
}
0
12
main()
{
char a[4]="HELL";
printf("%s",a);
}
Wipro
1
70
char *someFun1()
{
char temp[ ] = “string";
return temp;
}
char *someFun2()
{
char temp[ ] = {‘s’, ‘t’,’r’,’i’,’n’,’g’};
return temp;
}
int main()
{
puts(someFun1());
puts(someFun2());
}
1
34
char *someFun()
{
char *temp = “string constant";
return temp;
}
int main()
{
puts(someFun());
}
1
29
Printf can be implemented by using __________ list.
1
34
main()
{
extern int i;
{ int i=20;
{
const volatile unsigned i=30; printf("%d",i);
}
printf("%d",i);
}
printf("%d",i);
}
int i;
0
23
main()
{
int a=10,*j;
void *k;
j=k=&a;
j++;
k++;
printf("\n %u %u ",j,k);
}
1
25
main()
{
char a[4]="HELLO";
printf("%s",a);
}
1
26
Is this code legal?
int *ptr;
ptr = (int *) 0x400;
1
23
void main()
{
char ch;
for(ch=0;ch<=127;ch++)
printf(“%c %d \n“, ch, ch);
}
1
23
void main()
{
int i=10, j=2;
int *ip= &i, *jp = &j;
int k = *ip/*jp;
printf(“%d”,k);
}
1
26
Which version do you prefer of the following two,
1) printf(“%s”,str); // or the more curt one
2) printf(str);
1
24
char inputString[100] = {0};
To get string input from the keyboard which one of the
following is better?
1) gets(inputString)
2) fgets(inputString, sizeof(inputString), fp)
1
29
E-Mail New Answers
Answer Selected Questions
[1] 2 ... 4 ... 7 ... 10 ... 13 ... 16 ... 19 ... 22 ... 25 ... 28 ... 31 ... 34 ... 37 Next
Un-Answered Questions
Question
Views
Asked at
Select
program to bring a window to the front
171
Code for IP Address Comparison and Conversion in C#?
322
How we work on N tire architecture in asp.net Please give me
Examle...
4005
HCL
Performance
Algorithm A performs 10n2 basic operations and algorithm B
performs 300 lg n basic operations. For what value of n does
algorithm B start to show its better performance?
315
Qatar-University
program to find the magic square using array
992
how to transform XML Data into HTML
169
how to copy form data between different pages
129
Code for Communicating over Sockets?
233
code to keep a page Out of the browser history
192
write a program for area of circumference of shapes
21
code to detect versions of different browsers like internet
explorer, netscape, mozilla, opera etc
164
Code for using a Hot Key in an ActiveX Control?
212
Set up procedure for generating a wire frame display of a
polyhedron with the hidden edges of the object drawn with
dashed lines
304
IBM
I am configuring my anaconda file in linux, i want to use as
kickstart file, in post installation how can i edit file or
change the content of file and save it.
31
Given a spherical surface, write bump-mapping procedure to
generate the bumpy surface of an orange
329
In LSMW , what does the following error mean and how to
rectify it : Incorrect interface data for set 78 in method
C . This error is occuring in idoc processing step of LSMW.
242
Wipro
why nlogn is the lower limit of any sort algorithm?
10
how to create a Custom Scrollbar
283
How to use Client-side Script to Focus Controls in ASP.NET?
182
plzzzzzzzzz xplain this code
import java.awt.*;
import java.awt.event.*;
//import java.awt.MenuItem.*;
public class MenuForm extends Frame implements
ActionListener
{
MenuBar mb=new MenuBar();
Menu m1=new Menu("Master");
Menu m2 =new Menu("Transactions");
Menu m3=new Menu("Queries");
Menu m4=new Menu("Reports");
Menu m5=new Menu("Daily/Weekly");
Menu m6=new Menu("Housekeeping");
Menu m7=new Menu("About");
Menu m8=new Menu("Utilities/Tools");
Menu m9=new Menu("exit");
MenuItem m11=new MenuItem("consumer master");
MenuItem m12=new MenuItem("");
MenuItem m13=new MenuItem("");
MenuItem m21=new MenuItem("New Connection");
MenuItem m22=new MenuItem("Refill Booking");
MenuItem m23=new MenuItem("Shop Delivery");
MenuItem m51=new MenuItem("Mrk Dlry");
MenuItem m91=new MenuItem("Quit");
/*MenuItem m131=new MenuItem(" ");
MenuItem m132=new MenuItem(" ");
MenuItem m134=new MenuItem(" ");*/
Font f=new Font("TimesRoman",Font.BOLD,16);
Frame f1;
public static void main(String args[])
{
new MenuForm().setVisible(true);
}
public MenuForm()
{
super("Gas Agency Main Menu");
setSize(1280,800);
setBackground(Color.lightGray);
setLayout(null);
setMenuBar(mb);
/*m1.setFont(new Font("TimesRoman",
Font.BOLD,16));
m2.setFont(new Font("TimesRoman",
Font.BOLD,16));
m3.setFont(new Font("TimesRoman",
Font.BOLD,16));*/
mb.add(m1);
mb.add(m2);
mb.add(m3);
mb.add(m4);
mb.add(m5);
mb.add(m6);
mb.add(m7);
mb.add(m8);
mb.add(m9);
m1.add(m11);
m1.add(m12);
m1.add(m13);
m2.add(m21);
m2.add(m22);
m2.add(m23);
m5.add(m51);
m9.add(m91);
//m3.add(m31);
/*m13.setEnabled(false);
m13.add(m131);
m13.add(m132);
m13.add(m133);
m13.add(m134);
m13.add(m135);*/
setVisible(true);
/*m11.addActionListener(this);
m12.addActionListener(this);
m13.addActionListener(this);
m2.addActionListener(this);
m3.addActionListener(this);*/
m21.addActionListener(this);
m22.addActionListener(this);
m23.addActionListener(this);
/*m31.addActionListener(this);
m131.addActionListener(this);
m132.addActionListener(this);
m133.addActionListener(this);
m134.addActionListener(this);
m135.addActionListener(this);*/
m51.addActionListener(this);
m91.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
/*if(e.getSource()==m11)
{
}
if(e.getSource()==m12)
{
}
if( (e.getSource()==m131) || (e.getSource()
==m132) || (e.getSource()==m133) || (e.getSource()==m134)
|| (e.getSource()==m135) )
{
}*/
if(e.getSource()==m21)
{
NewConnection nc=new NewConnection
();
nc.setVisible(true);
this.dispose();
}
if(e.getSource()==m22)
{
RefillBooking rb=new RefillBooking
();
rb.setVisible(true);
this.dispose();
}
if(e.getSource()==m23)
{
ShopDelivery sd=new ShopDelivery();
sd.setVisible(true);
this.dispose();
}
if(e.getSource()==m51)
{
MarkDelivery
mrk=new MarkDelivery();
mrk.setVisible
(true);
this.dispose();
}
if(e.getSource()==m91)
{
this.dispose();
System.exit(0);
}
}
}
140
E-Mail New Answers
Answer Selected Questions