Karthikeya Boyini has Published 1385 Articles

EOF, getc() and feof() in C

karthikeya Boyini

karthikeya Boyini

Updated on 14-Sep-2023 20:45:57

27K+ Views

EOFEOF stands for End of File. The function getc() returns EOF, on success..Here is an example of EOF in C language, Let’s say we have "new.txt" file with the following content.This is demo! This is demo!Now, let us see the example.Example#include int main() {    FILE *f = fopen("new.txt", ... Read More

Read file line by line using C++

karthikeya Boyini

karthikeya Boyini

Updated on 14-Sep-2023 13:43:23

26K+ Views

This is a C++ program to read file line by line.Inputtpoint.txt is having initial content as "Tutorials point."OutputTutorials point.AlgorithmBegin    Create an object newfile against the class fstream.    Call open() method to open a file “tpoint.txt” to perform write operation using object newfile.    If file is open then ... Read More

Split String with Comma (,) in Java

karthikeya Boyini

karthikeya Boyini

Updated on 13-Sep-2023 15:45:12

34K+ Views

Let’s say the following is our string.String str = " This is demo text, and demo line!";To split a string with comma, use the split() method in Java.str.split("[, ]", 0);The following is the complete example.Example Live Demopublic class Demo {     public static void main(String[] args) {        String str = "This is demo text, and demo line!";   ... Read More

C# Program to check if a number is prime or not

karthikeya Boyini

karthikeya Boyini

Updated on 10-Sep-2023 08:06:41

66K+ Views

To calculate whether a number is prime or not, we have used a for loop. Within that on every iteration, we use an if statement to find that the remainder is equal to 0, between the number itself.for (int i = 1; i

C# Program to Convert Integer to String

karthikeya Boyini

karthikeya Boyini

Updated on 02-Sep-2023 15:26:43

46K+ Views

To convert an integer to string in C#, use the ToString() method.Set the integer for which you want the string −int num = 299;Use the ToString() method to convert Integer to String −String s; int num = 299; s = num.ToString();ExampleYou can try to run the following code to convert ... Read More

Float and Double in C

karthikeya Boyini

karthikeya Boyini

Updated on 02-Sep-2023 14:14:10

56K+ Views

FloatFloat is a datatype which is used to represent the floating point numbers. It is a 32-bit IEEE 754 single precision floating point number (1-bit for the sign, 8-bit for exponent, 23*-bit for the value. It has 6 decimal digits of precision.Here is the syntax of float in C language, ... Read More

Video Ads for Mobile Devices – A Successful Recipe for Your Digital Campaign

karthikeya Boyini

karthikeya Boyini

Updated on 13-May-2022 06:47:02

242 Views

Have you remembered your first book, the first lessons as a kid? Probably you may not recall the text written over there, but one thing you can surely recall that there were attractive images of animals, vehicles, fruits, vegetables and much more, isn’t it? And what about those videos of ... Read More

Why did Facebook recently buy passwords off Black market?

karthikeya Boyini

karthikeya Boyini

Updated on 11-May-2022 12:43:15

279 Views

Facebook, a very popular social networking site, that helps you connect with people. Some of you are well acquainted with and some you don’t, still you get a chance to make new friends and we learn a lot of things, updates on latest movies’ gossip and the list goes on. ... Read More

Tips For Preparing MCSE Certification Exams

karthikeya Boyini

karthikeya Boyini

Updated on 10-May-2022 10:09:42

545 Views

In this highly competitive world, increasing population of educated people and explosion of media and communication, selecting a career is like walking on a sharpened sword. This is so true for the IT industry, as statistically, the competition is more in this industry. There are numerous or so shall I ... Read More

The World of Smartphones and Where it is Heading!!

karthikeya Boyini

karthikeya Boyini

Updated on 06-May-2022 13:33:35

252 Views

In this era of digital technology, we are habituated of things being handy. like you don’t know something – Google it, and we don’t need an iPad or a laptop for googling things, just a smartphone that comes with this smart technology. In fact, we may forget to have breakfast ... Read More

Advertisements