Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z




Infosys C++ Code Interview Questions
Questions Answers Views Company eMail

What is the time complexity T(n) of the following program? a) int n, d, i, j; cin >> n; for (d=1; d<=n; d++) for (i=1; i<=d; i++) for (j=1; j<=n; j += n/10) cout << d << " " << i << " " << j << endl; b) void main() { int n, s, t; cin >> n; for (s = 1; s <= n/4; s++) {t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } } c) void main() { int n, r, s, t; cin >> n; for (r = 2; r <= n; r = r * 2) for (s = 1; s <= n/4; s++) { t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } }

3 6844

Min-Max Write an algorithm that finds both the smallest and largest numbers in a list of n numbers and calculate its complexity T(n).

1 4993

write a c program, using for loop, that accepts and odds two numbers. The output must be the sum and the addens. This should be repeated 5 times while the first number is decremented by one and the second number is incremented by 1.

2 6598

Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.

4 12073

Post New Infosys C++ Code Interview Questions




Infosys C++ Code Interview Questions





Un-Answered Questions

Explain List of artificial intelligence projects?

384


What are the tuning techniques you applied during your last project

918


How to handle hidden elements in selenium webdriver?

6


Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com

848


Does any one have SAP basis B1 Resume format for 4 to 5 year experience? if any one have please send me on kishorekharche@gmail.com

397






what is diff between static and dynaic arrys?

913


What is the difference between a smart worker and hard Worker.

14


what is the difference between windows azure queues and windows azure service bus queues?

1


Can we create database in oracle using command line ?

11


what is bank occ?

1048


Write code snippet to retrieve IMEI number of Android phone.

11


what is difference between NP2 NP3 NP4 CONCRETE HUME PIPES USED AT SITE

2829


What OS Cassandra supports?

1


How would you do " Keeping two folders in sync testing"

1266


what is the difference between dry and wet type of 132kV terminations. which one is durable

921