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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
 Categories  >>  Code Snippets       
 
  Programming Code (461)   Scripts_Markup Code (79)
 
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);  1  49
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  70
void main() { printf(“sizeof (void *) = %d \n“, sizeof( void *)); printf(“sizeof (int *) = %d \n”, sizeof(int *)); printf(“sizeof (double *) = %d \n”, sizeof(double *)); printf(“sizeof(struct unknown *) = %d \n”, sizeof(struct unknown *)); }  1  69
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }  1  25
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };  1  35
Is the following code legal? typedef struct a { int x; aType *b; }aType  1  21
Is the following code legal? struct a { int x; struct a *b; }  1  22
Is the following code legal? struct a { int x; struct a b; }  1  22
#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }  1  19
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }  1  17
What is the hidden bug with the following statement? assert(val++ != 0);  1  15
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }  1  18
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }  1  18
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])  1  15
There were 10 records stored in “somefile.dat” but the following program printed 11 names. What went wrong? void main() { struct student { char name[30], rollno[6]; }stud; FILE *fp = fopen(“somefile.dat”,”r”); while(!feof(fp)) { fread(&stud, sizeof(stud), 1 , fp); puts(stud.name); } }  1  17
E-Mail New Answers        Answer Selected Questions       
 
Prev     1   [2]    3  ... 7   ... 10   ... 13   ... 16   ... 19   ... 22   ... 25   ... 28   ... 31   ... 34   ... 37    Next
 
 
 Software interview questions   Software Interview Questions  Sciences interview questions   Sciences Interview Questions  Engineering interview questions   Engineering Interview Questions
 Business Management interview questions   Business Management Interview Questions  Accounting interview questions   Accounting Interview Questions  Advertising Media interview questions   Advertising Media Interview Questions
 Architecture Design interview questions   Architecture Design Interview Questions  Call Centre interview questions   Call Centre Interview Questions  Fashion Modelling interview questions   Fashion Modelling Interview Questions
 Government interview questions   Government Interview Questions  Law interview questions   Law Interview Questions  Tourism Hotel interview questions   Tourism Hotel Interview Questions
 Everything Else interview questions   Everything Else Interview Questions  Aptitude Questions interview questions   Aptitude Questions Interview Questions  Placement Papers interview questions   Placement Papers Interview Questions
 Certifications interview questions   Certifications Interview Questions  Visa Interview Questions interview questions   Visa Interview Questions Interview Questions  Code Snippets interview questions   Code Snippets Interview Questions
 Entrance Exams interview questions   Entrance Exams Interview Questions  ERRORS interview questions   ERRORS Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
Given 1 to n random number, find top 10 maximum numbers and explain the time complexity of the algorithm. 446 NetApp
WORKING STORAGE 01 WS-LENGTH PIC 9(1) VALUE 5. 01 DFHCOMMAREA. COPY ABCDEF (COPYBOOK ABCDEF IS HAVING ONLY ONE VARIABLE OF LENGTH X (100).) .. PROCEDUER DIVISION. ... EXEC CICS XCTL PROGRAM (WS-PGM) COMMAREA (DFHCOMMAREA) LENGTH (WS-LENGTH) RESP (WC-RESPONSE) END-EXEC 1. What will be the value of EIBCALEN in program ABCDEF? 2. What will be length of commarea when in ABCDEF? 3. Will such a code thow any error while linking to called program? Thanks in Advance 84  
Implement a t9 mobile dictionary. (Give code with explanation ) 511 Yahoo
Hi, My name is satish kumar dega I am learing QTP I have one doubt. I need to count the radio buttons in a particular page. In QTP how to write descriptive progming and how I will get all the radiobuttons count.In a paricular page having two WebRadioGroups under each group having 3 radiobuttons.I need to count all the radio buttons could you plz help me regarding this one 29  
Seat Reservation prog for the theatre. Write a function for seat allocation for the movie tickets. Total no of seats available are 200. 20 in each row. Each row is referred by the Character, "A" for the first row and 'J' for the last. And each seat in a row is represented by the no. 1-20. So seat in diffrent rows would be represented as A1,A2....;B1,B2.....;........J1,J2... Each cell in the table represent either 0 or 1. 0 rep would seat is available , 1 would represent seat is reserved. Booking should start from the last row (J) to the first row(A). At the max 20 seats can be booked at a time. if seats are available, then print all the seat nos like "B2" i.e (2 row, 3 col) otherwise Print "Seats are not available." and we must book consecutive seats only. 105  
code to create a new window 178  
how to transform XML Data into HTML 171  
create Drop-Down Navigation Menus 130 TCS
why nlogn is the lower limit of any sort algorithm? 21  
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector 508  
Code to Block submission of form by pressing Enter Key 353  
code to positioning of window in certain dimensions 150  
function to combine two or more arrays 170  
how to display after one month adding today's sysdatedate in jsp? 233  
. Remove all the blank spaces between character.Matrix is of 10* 10. eg: INPUT ------------------------------------ | N | A | | V | |T ------------------------------------- | |G | U | |P | -------------------------------------- |T | | | A | | ------------------------------------ OUTPUT: ------------------------------------ | N | A | V | T | | ------------------------------------- |G |U | P | | | -------------------------------------- |T | A | | | | ------------------------------------ 57  
How to encode and decode URL strings? 202 TCS
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines 318 IBM
plzzzzzzzzz xplain this code import java.awt.*; import java.awt.event.*; public class Link extends Frame implements ActionListener { Label l1; Button b1; public static void main(String sr[]) { new Link().setVisible(true); } public Link() { super("Warning"); setSize(500,500); setBackground(Color.lightGray); setLayout(null); l1=new Label("There is no Link"); l1.setBounds(0,0,500,460); l1.setFont(new Font("TimesRoman",Font.BOLD,35)); l1.setAlignment(Label.CENTER); add(l1); b1=new Button("QUIT"); b1.setBackground(Color.orange); b1.setBounds(0,460,500,40); b1.addActionListener(this); add(b1); } public void actionPerformed(ActionEvent e) { this.dispose(); } } 95  
how to Auto Scroll the page 200 Ninestars
write a code to generate pseudorandom numbes 248 ABC
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
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