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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
 Categories  >>  ERRORS  >>  C C++ Errors       
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop. HCL  1  44
main() { char c; for(c='A';c<='Z';c++) getch(); }  7  558
how to convert decimal to binary in c using while loop without using array  7  2091
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;  3  559
UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....  3  502
Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .  3  1303
Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a do...while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .  1  933
Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.  1  734
Given that two int variables, total and amount , have been declared, write a sequence of statements that: initializes total to 0 reads three values into amount , one at a time. After each value is read in to amount , it is added to the value in total (that is, total is incremented by the value in amount ). Instructor's notes: If you use a loop, it must be a for loop. And if you use a loop control variable for counting, you must declare it.  1  901
who was the present cheif governor of reserve bank of india SBI  3  644
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?  10  861
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..  6  932
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).  0  200
wap for bubble sort  2  291
write a profram for selection sort whats the error in it?  1  566
E-Mail New Answers        Answer Selected Questions        Post New C C++ Errors Question
 
 [1]   2    Next
 
 
 C C++ Errors interview questions   C C++ Errors Interview Questions  DotNet Errors interview questions   DotNet Errors Interview Questions  Database Errors interview questions   Database Errors Interview Questions
 Scripts Errors interview questions   Scripts Errors Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS). 200  
which typw of errors ? & how to solve it ? 169  
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