Why is sprintf unsafe?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is difference between scanf and gets?

0 Answers  


difference between my-strcpy and strcpy ?

3 Answers   Geometric Software, IIM, Infosys,


how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 Answers  


#include<stdio.h> int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }

1 Answers  


main() {int a=200*200/100; printf("%d",a); }

14 Answers   TCS,






atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


When can you use a pointer with a function?

0 Answers  


Define Spanning-Tree Protocol (STP)

0 Answers  


What is the process to create increment and decrement stamen in c?

0 Answers  


Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.

2 Answers  


What is integer constants?

0 Answers  


What's wrong with "char *p; *p = malloc(10);"?

5 Answers  


Categories