Code Snippets Interview Questions
Questions Answers Views Company eMail

Hi, I want to get output as 0x23400000345.... in the below example How to get? i tried out, but unable to get the answer $r=0x234; $t=0x345; $y=pack(L L,$t,$r); $x1=unpack(L!,pack(P,$y)); printf(" The value is $x1"); I didnt get constant output?

1 1591

In java, why do we set thread priority, when we know that there is no guarantee by which a thread should be execute?

Microsoft, Google,

1359

why is printf("%d %d %d",i++,--i,i--);

Cynity, TCS, Apple,

4 2833




Sir... please give some important coding questions asked by product companies..

959

1+(2*3)+(4*5*6)+(7*8*9*10)+... specified input value

MAQ,

1 1420

i have some csv files in a directory which have sub-directories also. now how can i merge all .csv files in to one with a single header. for example: have some 4 files. 1.csv--------name,age,sal abc,25,4000 2.csv--------name,age,sal vgd,32,3500 3.csv--------name,age,sal hfg,20,5000 4.csv--------name,age,sal asd,15,2000 now my output file should be like 5.csv----------name,age,sal abc,25,4000 vgd,32,3500 hfg,20,5000 asd,15,2000 and please explain the code for me. as i am new to scripting. thank you in advance

Tech Mahindra,

846

Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

Home,

926

Write a program using one dimensional array to assign values and then display it on the screen. Use the formula a[i]=i*10 to assign value to an element.

Samar State University,

1 1199

Write a program that produces these three columns sequence nos. using loop statement Sequence nos. Squared Squared + 5 1 1 6 2 4 9 3 9 14 4 16 21 5 25 30

GoDB,

1 1578

4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(ā€œ%d%d%d%dā€,I,j,c,m); }

Broadridge,

2 3877

Beautiful is for 012345678 9 and a code for similar word containing the same alphabets

1513

All the combinations of prime numbers whose sum gives 32

HHH,

1 1334

A program that will create a movie seat reservation. The program will display the summary seats and its status. The user will be ask what seat no. to be reserved, then it will go back again to the summary to display the updated seat status. If the seat no. is already reserved then it will prompt an error message. And also if the input seat no is out of range then it will also prompt an error message. The program is continuously running. Termination of the program will depends on how the programmer will apply. Sample output: Movie Seats Reservation Summary of Seats: Seat 1: Available Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 1 Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 6 The Seat no. is out of range! Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 1 The Seat no. is already reserved! Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 0 GoodBye... Thank You!!!

851

What is full form of PEPSI

912

#include int main() { int x=2,y; y=++x*x++*++x; printf("%d",y); } Output for this program is 64. can you explain how this output is come??

1 1440







Un-Answered Questions { Code Snippets }

How can I create connection two blue-tooth mobile in j2me. please urgent

1213


iam getting keyword or delimiter error while executing ICETOOL,provide me solution.

1301


how to transform XML Data into HTML

1296


How can i know that how many user are visited to my page in php?

1051


Write a simple encryption program using string function which apply the substitution method.

4440






Is there any way to open notepad within php?

1070


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; }

1357


Is there any static classes are in java give some examples

983


In java, why do we set thread priority, when we know that there is no guarantee by which a thread should be execute?

1359


Can we run Applet in Web browser with security policy files

1396


Hey, any expert here can help me to creat php code. I want php code to calculate like below. input :12 April 1974 then perform this calculation: 12 + 4 + 1974 = 1990 1 + 9 + 9 + 0 = 19 1 + 9 = 10 1 + 0 = 1(final answer) this code i just want to used to share the personality from date of birth. The input come from user, base on user input, then php will calculate like above, and, the final answer will use do display the person attitude. example, final answer = 1, display patient person final answer = 2, will display hard working person

1655


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

1463


hai, i want to know how the connectionpool manager work in the java or netbeans.Anybody having the exact code plz give to me i have no idea about that so help me plz

1894


Bubble Sort. java thereafter the user will be asked to inpout the size of the list,sort the list in ascending order and display the sorted list in a horizontal manner???

1735


How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)

1554