Escolar Documentos
Profissional Documentos
Cultura Documentos
Answers
Top 25
1) How do Microservices
you Interview Questions
construct and Answers
an
increment Top 19 Ansible
Interview Questions
New statement
or and Answers
Top 27 SDLC
Interview Questions
and Answers
Top 30 Talend
decrement statement in C? interview Questions
& Answers
There are actually two ways you can do this. One is to use
the increment operator ++ and decrement operator –. For
example, the statement “x++” means to increment the
value of x by 1. Likewise, the statement “x –” means to
decrement the value of x by 1. Another way of writing
increment statements is to use the conventional + plus sign
or – minus sign. In the case of “x++”, another way to write it
is “x = x +1”.
https://career.guru99.com/top-100-c-interview-questions-answers/ 1/26
09/02/2019 Top 100 C Interview Questions & Answers
Answer:
1 a=1;
2
3 while (a<=100) {
4
5 printf ("%d\n", a * a);
6
7 a++;
8
9 }
5) What is a stack?
[https://career.guru99.com/wp-
content/uploads/2012/03/C-Interview-Questions1.jpg]
https://career.guru99.com/top-100-c-interview-questions-answers/ 3/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 4/26
09/02/2019 Top 100 C Interview Questions & Answers
19) What are header les and what are its uses in C
programming?
https://career.guru99.com/top-100-c-interview-questions-answers/ 5/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 6/26
09/02/2019 Top 100 C Interview Questions & Answers
23) Can I use “int” data type to store the value 32768?
Why?
25) Why is it that not all header les are declared in every
C program?
12
123
1234
12345
Answer:
4
5 printf("%d",b);
6
7 printf("\n");
8
9 }
1 if (num % 2 == 0)
2
3 printf("EVEN");
4
5 else
6
7 printf("ODD");
https://career.guru99.com/top-100-c-interview-questions-answers/ 10/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 11/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 12/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 13/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 14/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 15/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 16/26
09/02/2019 Top 100 C Interview Questions & Answers
1 If (num>=0)
2
3 printf("number is positive");
4
5 else
6
7 printf ("number is negative");
https://career.guru99.com/top-100-c-interview-questions-answers/ 17/26
09/02/2019 Top 100 C Interview Questions & Answers
https://career.guru99.com/top-100-c-interview-questions-answers/ 18/26
09/02/2019 Top 100 C Interview Questions & Answers
81) What does the characters “r” and “w” mean when
writing programs that will make use of les?
https://career.guru99.com/top-100-c-interview-questions-answers/ 19/26
09/02/2019 Top 100 C Interview Questions & Answers
The basic data types are int, char, and oat. Int is used to
declare variables that will be storing integer values. Float is
used to store real numbers. Char can store individual
character values.
One thing to note is that you cannot pass the entire array
to a function. Instead, you pass to it a pointer that will point
to the array rst element in memory. To do this, you
indicate the name of the array without the brackets.
https://career.guru99.com/top-100-c-interview-questions-answers/ 20/26
09/02/2019 Top 100 C Interview Questions & Answers
The gets() function allows a full line data entry from the
user. When the user presses the enter key to end the input,
the entire line of characters is stored to a string variable.
Note that the enter key is not included in the variable, but
instead a null terminator \0 is placed after the last
character.
https://career.guru99.com/top-100-c-interview-questions-answers/ 21/26
09/02/2019 Top 100 C Interview Questions & Answers
1 int temp;
2
3 temp = num1;
4
5 num1 = num2;
6
7 num2 = temp;
https://career.guru99.com/top-100-c-interview-questions-answers/ 22/26
09/02/2019 Top 100 C Interview Questions & Answers
[/#facebook]
[/#twitter]
Top 48 SAS
Interview
13
REPLIES
Varun Galar
https://career.guru99.com/top-100-c-interview-questions-answers/ 23/26
09/02/2019 Top 100 C Interview Questions & Answers
worth reading
Reply
Biswajit Bora
Reply
anand dubey
Reply
sumit
Reply
Anusha Priya
Reply
Charan
Reply
Km. Sakshi
Reply
https://career.guru99.com/top-100-c-interview-questions-answers/ 24/26
09/02/2019 Top 100 C Interview Questions & Answers
charan rajh
Reply
vathsow
Reply
Sravan
#include
void _start()
{
int ret=Mymain();
exit(ret);
}
int Mymain()
{
printf(“Hey Iam able build with out
Main\n”);
}
https://career.guru99.com/top-100-c-interview-questions-answers/ 25/26
09/02/2019 Top 100 C Interview Questions & Answers
Reply
g.saranya
Reply
Nupur Korade
Reply
Shree
Reply
https://career.guru99.com/top-100-c-interview-questions-answers/ 26/26