What are static variables, and where are they stored?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Static variables retain their value across multiple function calls. They are stored in the data segment of memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
Static variables retain their value across multiple function calls. They are stored in the data segment of memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
How can you call a function, given its name as a string?
main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*
player is good if the following conditions are satisfied: He is either from “India”, “Japan” or “Korea” He has a minimum of 3 years of experience He has won at least 3 major tournaments, and one of them must be "World Championship Tournament". He must know more than 10 techniques. (but see next question) If he knows less than 10 techniques, then he must be a world champion. His name contains at least 3 words. For example "Sachin Tendulkar" will not meet this condition. Write a method: boolean isGoodPlayer(String name, String country, int yearsExperience, String[] majorTournamentsWon, String[] techniques, boolean isWorldChampion) name country yearsExperience majorTournamentsWon techniques isWorldChampion
What is the translation phases used in c language?
What is difference between Structure and Unions?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
How can a number be converted to a string?
What is a void * in c?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
how to do in place reversal of a linked list(singly or doubly)?