How to reverse a string using a recursive function, without swapping or using an extra memory?
31 103528#include
Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;
5 9657int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?
TCS,
4 12730
What is meant by keywords in c?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
Write a program to print ASCII code for a given digit.
What is substring in c?
What is structure and union in c?
Differentiate abs() function from fabs() function.
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
How many types of sorting are there in c?
With the help of using classes, write a program to add two numbers.
How #define works?
What are the modifiers available in c programming language?
What is the difference between printf and scanf in c?
Is c still used?
Explain bit masking in c?