Technical Interview Questions and Answers :: Sopra Steria
- Select All
- SQL
- Java
- C++
- Informatica
- C
- DBMS
- Data Structure
- HR Question in TR
1 / 138
By default the value unchanged means we can give as static.
Variable which is declared as static and no further initialisation then static variable takes value from zero.
2 / 138
Register variables are a special case of automatic variables. Automatic variables are allocated storage in the memory of the computer; however, for most computers, accessing data in memory is considerably slower than processing in the CPU. These computers often have small amounts of storage within the CPU itself where data can be stored and accessed quickly. These storage cells are called registers.
3 / 138
Each program is allocated two types of storage stack and heap .Auto variables are also known as local variable
and are stored in stack.
4 / 138
a failure in a program to release discarded memory, causing impaired performance or failure.
5 / 138
If we see any loop if break is present then the loop terminates and comes out of the loop. Break is used in switch .
Where as in continue it just skips the below statements.continue is used in loops
6 / 138
For loop is used when we know how many times
7 / 138
#include<stdio.h>
struct name{
int a;
int b;
int c;
};
struct name func(){
struct name s1 ;
s1.a=1;
s1.b=2;
s1.c=3;
return s1;
}
int main(){
struct name val = func();
}
8 / 138
main() function is the predefined function of the stdio.h library . main() function is responsible for the execution of the programs.
9 / 138
It is possible to pass some values from the command line to your C programs when they are executed. These values are called
10 / 138
IN PASS BY VALUE COPY OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CANNOT BE MODIFIED.