Code Snippets Interview Questions
Questions Answers Views Company eMail

Can we change the validator-rules.xml for our own validations in struts??

Mastek,

2420

#include int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }

3 5892

Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4586

PROBLEM #8 The cashier at the counter of a Super Store, Mr. Khazaanchi has the following bundles of rupee cash notes with him: Rs. 1, 2, 5, 10, 50, 100, 500, 1000 A customer comes at his counter with various items that he has shopped. Mr. Khazaanchi totals the item prices and tells the customer his total amount payable. The customer gives Mr. Khazanchi some amount of cash. Find the total number of rupee notes of each denomination (i.e. 1, 2, 5, 10, 50, 100, 500, 1000) Mr. Khazaanchi will have to give to the withdrawer ensuring that the total number of rupee notes are minimum.

AR, ARJ,

1 5967

what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

Wipro,

3 5560

void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 4890

x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);

2 5659

write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

HCL, SRCASW,

4113

write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation

HCL,

2504

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

HCL,

2336

how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

Mbarara University of Science and Technology,

2240

c# code to Count number of 1's in a given range of integer (0 to n)

4452

How to find the list of users who have two codes su01 and pfcg? thank in advance all.

1771

find out the list of users who have access to all t-codes starts with 'SU'? thanks in advance all.

2086

Find out the list of roles which gives access to all t-codes in SAP? Thanks in advance.

2003


Un-Answered Questions { Code Snippets }

Write a program that will convert an integer pointer to an integer and vice-versa.

616


Is there any way to open notepad within php?

1775


program for straight line(y=mx+c)

5632


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

2845


Write a function that takes an integer and returns the smallest number that is greater than the given number which is a palendrome. For example, if the input was 111 the next palindromic number would be 121.

1479






how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2240


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.

2235


What is the functionality of SetForegroundWindow?

570


communication between main window and new windows

1800


Code for Document Validation in XML.NET?

2069


how to diplay a external image of output on winxp by using c & c++,

3054


How can you relate the function with the structure? Explain with an appropriate example.

3031


write a program using virtual function to find the transposing of a square matrix?

2970


output for printf("printf");

2085


Hello I am hosting remoting within IIS. Everything works just fine as long as I allow anonymous access at the IIS level. When I allow only Windows Authenticated sessions, something very strange happens: If the client activates the remote object with IP address - works fine If the client activates it using a machine name - get http 401 exception is thrown. The exception is thrown when the client calls the remote method. I set the channel's useDefaultCredentials property to true. Any idea how to allow Windows Authentication? Here is the call stack: System.Net.WebException: The remote server returned an error: (401) Unauthorized .. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean handshakeComplete) at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob, Boolean handshakeComplete) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials) at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials) at System.Net.AuthenticationState.AttemptAuthenticate (HttpWebRequest httpWebRequest, ICredentials authInfo) --- End of inner exception stack trace ---

4339